python-typing_extensions/_typed_dict_test_helper.py

9 lines
178 B
Python

from __future__ import annotations
from typing import Generic, Optional, T
from typing_extensions import TypedDict
class FooGeneric(TypedDict, Generic[T]):
a: Optional[T]