Skip to content

Commit 982f80d

Browse files
committed
Make the argument name match the others for gatherers.
1 parent cabd61a commit 982f80d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/ducktools/classbuilder/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@ def __eq__(self, other):
463463
def __repr__(self):
464464
return f"{type(self).__name__}(fields={self.fields!r}, modifications={self.modifications!r})"
465465

466-
def __call__(self, cls_dict):
467-
# cls_dict will be provided, but isn't needed
466+
def __call__(self, cls_or_ns):
467+
# cls_or_ns will be provided, but isn't needed
468468
return self.fields, self.modifications
469469

470470

src/ducktools/classbuilder/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class GatheredFields:
139139
def __repr__(self) -> str: ...
140140
def __eq__(self, other) -> bool: ...
141141
def __call__(
142-
self, cls_dict: type | dict[str, typing.Any]
142+
self, cls_or_ns: type | dict[str, typing.Any]
143143
) -> tuple[dict[str, Field], dict[str, typing.Any]]: ...
144144

145145
# Only technically frozen under testing but we should *act* like they are frozen

0 commit comments

Comments
 (0)