Skip to content

Commit 3bfbdca

Browse files
committed
One more private function
1 parent ef66fbb commit 3bfbdca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fgpyo/util/inspect.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def is_attr_class(cls: type) -> bool: # type: ignore[arg-type]
9999
"""
100100

101101

102-
def get_dataclasses_fields_dict(
102+
def _get_dataclasses_fields_dict(
103103
class_or_instance: Union[DataclassesProtocol, Type[DataclassesProtocol]],
104104
) -> Dict[str, dataclasses.Field]:
105105
"""Get a dict from field name to Field for a dataclass class or instance."""
@@ -391,7 +391,7 @@ def get_fields_dict(
391391
) -> Mapping[str, FieldType]:
392392
"""Get the fields dict from either a dataclasses or attr dataclass (or instance)"""
393393
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]
395395
elif is_attr_class(cls): # type: ignore[arg-type]
396396
return get_attr_fields_dict(cls) # type: ignore[arg-type]
397397
else:

0 commit comments

Comments
 (0)