Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
2021-10-04 15:27:05 -04:00
parent 539ddb536a
commit 459719c21e

View File

@@ -31,7 +31,7 @@ class DataMeta(type):
@property # type: ignore [no-redef,misc]
@functools.cache
def Dict(cls: DataMeta) -> DataDict: # noqa: N802, DAR203
def Dict(cls: DataMeta) -> DataDict: # noqa: N802
"""The TypedDict definition for this class.
This provides a type definition for data to be converted to/from the
@@ -39,7 +39,7 @@ class DataMeta(type):
Returns:
dict[str, object]: The TypedDict for this object.
"""
""" # noqa: DAR203
fields = {
name: str if type_ is datetime.datetime else type_
for name, type_ in cls.__annotations__.items()