Skip to content

Commit

Permalink
fix: Fixing compatibility issues with Python 3.6 type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
constantinius committed Nov 25, 2021
1 parent 84a1175 commit ad7ddd7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pygeofilter/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ def parse_duration(value: str) -> timedelta:
def parse_date(value: str) -> date:
""" Backport for `fromisoformat` for dates in Python 3.6
"""

if hasattr(date, 'fromisoformat'):
return date.fromisoformat(value)

return date(*(int(part) for part in value.split('-')))


Expand Down

0 comments on commit ad7ddd7

Please sign in to comment.