Skip to content

Commit efa55db

Browse files
committed
fix: 3.8 hint
1 parent 878b65e commit efa55db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fgpyo/util/inspect.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ def get_attr_fields_dict(cls: type) -> Dict[str, dataclasses.Field]: # type: ig
7373
else:
7474

7575
# https://github.com/python/typeshed/blob/727f3c4320d2af3af2f16695e24dd78e79b7c070/stdlib/_typeshed/__init__.pyi#L348
76+
# TODO: update the hint to `Field[Any]` when we drop support for 3.8
7677
class DataclassInstance(Protocol):
77-
__dataclasses_fields__: ClassVar[Dict[str, dataclasses.Field[Any]]]
78+
__dataclasses_fields__: ClassVar[Dict[str, dataclasses.Field]]
7879

7980

8081
if TYPE_CHECKING and _use_attr: # pragma: no cover

0 commit comments

Comments
 (0)