Skip to content

Commit

Permalink
Adding type related conditional imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Yomguithereal committed Dec 19, 2023
1 parent 538df9e commit 21fcd41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minet/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

# NOTE: yes this is repetitive, but mypy only understands this, don't ask questions...
if sys.version_info >= (3, 8):
from typing import Literal
from typing import Literal, get_origin, get_type_hints, get_args
else:
from typing_extensions import Literal
from typing_extensions import Literal, get_origin, get_type_hints, get_args

if sys.version_info >= (3, 10):
from typing import TypeGuard, Concatenate, ParamSpec
Expand Down

0 comments on commit 21fcd41

Please sign in to comment.