blob: 7ffc5e1d2d5f1bab541ffb75ab1a9dac00c1890a [file] [log] [blame]
from __future__ import annotations
from typing import Generic, Optional, T
from typing_extensions import TypedDict
# this class must not be imported into test_typing_extensions.py at top level, otherwise
# the test_get_type_hints_cross_module_subclass test will pass for the wrong reason
class _DoNotImport:
pass
class Foo(TypedDict):
a: _DoNotImport
class FooGeneric(TypedDict, Generic[T]):
a: Optional[T]