Use dateutil parser (#213)

Switch to using `isoparse` from `dateutil.parser` instead of `datetime.fromisoformat` for more robust parsing of dates in from_dict.
This commit is contained in:
robinaly
2021-02-24 22:18:05 +01:00
committed by GitHub
parent 9e6881999e
commit 6c1c41e9cc
4 changed files with 107 additions and 13 deletions

View File

@@ -13,12 +13,12 @@ packages = [
[tool.poetry.dependencies]
python = "^3.6"
backports-datetime-fromisoformat = { version = "^1.0.0", python = "<3.7" }
black = { version = ">=19.3b0", optional = true }
dataclasses = { version = "^0.7", python = ">=3.6, <3.7" }
grpclib = "^0.4.1"
jinja2 = { version = "^2.11.2", optional = true }
protobuf = { version = "^3.12.2", optional = true }
python-dateutil = "^2.8"
[tool.poetry.dev-dependencies]
black = "^20.8b1"