Skip to content

Commit

Permalink
Feature/support updated mypy nh13 (#74)
Browse files Browse the repository at this point in the history
Fix conditional imports in inspect module
  • Loading branch information
nh13 authored Nov 22, 2023
1 parent cf7552e commit f16f3c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fgpyo/util/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
from typing import Type
from typing import Union

try: # py>=38
import sys

if sys.version_info >= (3, 8):
from typing import Literal
except ImportError: # py<38
else:
from typing_extensions import Literal

import functools
Expand Down

0 comments on commit f16f3c4

Please sign in to comment.