Skip to content

Commit 67fb291

Browse files
committed
Delete leftover getattr generation code
1 parent 0a09093 commit 67fb291

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/attr/_make.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -941,10 +941,6 @@ def _create_slots_class(self):
941941
class_annotations[name] = annotation
942942
cd[name] = _make_cached_property_uncached(func, self._cls)
943943

944-
original_getattr = cd.get("__getattr__")
945-
if original_getattr is not None:
946-
additional_closure_functions_to_update.append(original_getattr)
947-
948944
# We only add the names of attributes that aren't inherited.
949945
# Setting __slots__ to inherited attributes wastes memory.
950946
slot_names = [name for name in names if name not in base_names]

0 commit comments

Comments
 (0)