Skip to content

Commit

Permalink
Fix pydocstyle errors in dynamodb.
Browse files Browse the repository at this point in the history
  • Loading branch information
Omer Katz committed Dec 5, 2019
1 parent 778ef8e commit c8e0a07
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions celery/backends/dynamodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,11 @@ def _has_ttl(self):
- False: Disable TTL on the table; don't use expiry.
- None: Ignore TTL on the table; don't use expiry.
"""

return None if self.time_to_live_seconds is None \
else self.time_to_live_seconds >= 0

def _validate_ttl_methods(self):
"""Verify boto support for the DynamoDB Time to Live methods."""

# Required TTL methods.
required_methods = (
'update_time_to_live',
Expand Down Expand Up @@ -272,7 +270,6 @@ def _validate_ttl_methods(self):

def _get_ttl_specification(self, ttl_attr_name):
"""Get the boto3 structure describing the DynamoDB TTL specification."""

return {
'TableName': self.table_name,
'TimeToLiveSpecification': {
Expand Down Expand Up @@ -304,7 +301,6 @@ def _get_table_ttl_description(self):

def _set_table_ttl(self):
"""Enable or disable Time to Live on the table."""

# Get the table TTL description, and return early when possible.
description = self._get_table_ttl_description()
status = description['TimeToLiveDescription']['TimeToLiveStatus']
Expand Down

0 comments on commit c8e0a07

Please sign in to comment.