Skip to content

Commit

Permalink
fix typing tests with 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed May 19, 2022
1 parent 4d17a4c commit 91a2ffc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_typing.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys
from collections import namedtuple
from typing import Any, Callable as TypingCallable, Dict, ForwardRef, List, NamedTuple, NewType, Union # noqa: F401
from typing import Any, Callable as TypingCallable, Dict, List, NamedTuple, NewType, Union # noqa: F401

import pytest
from typing_extensions import Annotated # noqa: F401
Expand All @@ -24,6 +24,12 @@
except ImportError:
mypy_extensions_TypedDict = None

try:
from typing import ForwardRef
except ImportError:
# ForwardRef is only available in Python 3.6+
pass

ALL_TYPEDDICT_KINDS = (typing_TypedDict, typing_extensions_TypedDict, mypy_extensions_TypedDict)


Expand Down

0 comments on commit 91a2ffc

Please sign in to comment.