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 14, 2022
1 parent c6f3f5f commit fcfc408
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_typing.py
@@ -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 fcfc408

Please sign in to comment.