Is is_typeddict supposed to return False for generic TypedDict specializations, or is this a bug? The documentation does not mention this.
Example:
from typing import is_typeddict, Generic, TypeVar, TypedDict
A = TypeVar("A", bound=TypedDict)
class Attributes(TypedDict, total=False):
title: str
class Resource(TypedDict, Generic[A]):
a: A
print(is_typeddict(Resource[Attributes]))
# False
# Would have expected True...
Live demo: https://www.online-python.com/Pa6C0sWjIh
Hope this is the right place to report this.
Is
is_typeddictsupposed to returnFalsefor generic TypedDict specializations, or is this a bug? The documentation does not mention this.Example:
Live demo: https://www.online-python.com/Pa6C0sWjIh
Hope this is the right place to report this.