Skip to content

Commit

Permalink
Add Python 3.9 support
Browse files Browse the repository at this point in the history
  • Loading branch information
konradhalas committed Jul 3, 2020
1 parent 5d8d125 commit fb44421
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ python:
- 3.6
- 3.7
- 3.8
- 3.9-dev
install:
- pip install -e .[dev]
script:
Expand Down
5 changes: 4 additions & 1 deletion dacite/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ def is_generic_collection(type_: Type) -> bool:


def extract_generic(type_: Type) -> tuple:
return type_.__args__ # type: ignore
try:
return type_.__args__ # type: ignore
except AttributeError:
return ()


def is_subclass(sub_type: Type, base_type: Type) -> bool:
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Libraries :: Python Modules",
],
python_requires=">=3.6",
Expand Down

0 comments on commit fb44421

Please sign in to comment.