File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ def is_attr_class(cls: type) -> bool: # type: ignore[arg-type]
99
99
"""
100
100
101
101
102
- def get_dataclasses_fields_dict (
102
+ def _get_dataclasses_fields_dict (
103
103
class_or_instance : Union [DataclassesProtocol , Type [DataclassesProtocol ]],
104
104
) -> Dict [str , dataclasses .Field ]:
105
105
"""Get a dict from field name to Field for a dataclass class or instance."""
@@ -391,7 +391,7 @@ def get_fields_dict(
391
391
) -> Mapping [str , FieldType ]:
392
392
"""Get the fields dict from either a dataclasses or attr dataclass (or instance)"""
393
393
if is_dataclasses_class (cls ):
394
- return get_dataclasses_fields_dict (cls ) # type: ignore[arg-type]
394
+ return _get_dataclasses_fields_dict (cls ) # type: ignore[arg-type]
395
395
elif is_attr_class (cls ): # type: ignore[arg-type]
396
396
return get_attr_fields_dict (cls ) # type: ignore[arg-type]
397
397
else :
You can’t perform that action at this time.
0 commit comments