Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
Co-authored-by: Ilya Konstantinov <ilya.konstantinov@gmail.com>
  • Loading branch information
jpinner-lyft and ikonst committed Sep 16, 2020
1 parent 65d6f19 commit 8a18b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynamodb/attributes.py
Expand Up @@ -670,7 +670,7 @@ def deserialize(self, value):
return self._fast_parse_utc_date_string(value)

@staticmethod
def _fast_parse_utc_date_string(date_string):
def _fast_parse_utc_date_string(date_string: str) -> datetime:
# Method to quickly parse strings formatted with '%Y-%m-%dT%H:%M:%S.%f+0000'.
# This is ~5.8x faster than using strptime and 38x faster than dateutil.parser.parse.
_int = int # Hack to prevent global lookups of int, speeds up the function ~10%
Expand Down

0 comments on commit 8a18b45

Please sign in to comment.