Skip to content

Commit

Permalink
fix compatibility with py37
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Oct 24, 2023
1 parent d97bd20 commit ab4a88a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dargs/dargs.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
from copy import deepcopy
from enum import Enum
from textwrap import indent
from typing import Any, Callable, Dict, Iterable, List, Optional, Union, get_origin
from typing import Any, Callable, Dict, Iterable, List, Optional, Union
try:
from typing import get_origin
except ImportError:
from typing_extensions import get_origin

import typeguard

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ classifiers = [
]
dependencies = [
"typeguard>=3",
'typing_extensions; python_version < "3.8"',
]
requires-python = ">=3.7"
readme = "README.md"
Expand Down

0 comments on commit ab4a88a

Please sign in to comment.