From ad7ddd7a332f838fa284e1493f0d3cc15036ad95 Mon Sep 17 00:00:00 2001 From: Fabian Schindler Date: Thu, 25 Nov 2021 17:52:15 +0100 Subject: [PATCH] fix: Fixing compatibility issues with Python 3.6 type checking --- pygeofilter/util.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pygeofilter/util.py b/pygeofilter/util.py index c036108..a9ba5f4 100644 --- a/pygeofilter/util.py +++ b/pygeofilter/util.py @@ -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('-')))