Skip to content

Commit

Permalink
rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
nsheff committed May 18, 2023
1 parent b2aacda commit ca76e7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions attmap/attmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ def _metamorph_maplike(self, m):
to_return = self._lower_type_bound(m.items())

# Don't forget any attributes included in this item
for x in dir(m):
if x in m.items():
for attr in dir(m):
if attr in m.items():
continue
if x[:1] == "_":
if attr[:1] == "_":
continue
to_return.__setattr__(x, m.__getattribute__(x))
to_return.__setattr__(attr, m.__getattribute__(attr))

return to_return

Expand Down

0 comments on commit ca76e7c

Please sign in to comment.