We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07a4992 commit f0578a4Copy full SHA for f0578a4
1 file changed
pythonwhat/State.py
@@ -162,11 +162,11 @@ def update_context(name):
162
init_kwargs = {**base_kwargs, **kwargs}
163
child = klass(**init_kwargs)
164
165
- extra_attrs = set(vars(self).keys()) - set(self.params)
+ extra_attrs = set(vars(self)) - set(self.params)
166
for attr in extra_attrs:
167
# don't copy attrs set on new instances in init
168
# the cached manual_sigs is passed
169
- if attr not in ["params", "ast_dispatcher", "converters"]:
+ if attr not in {"params", "ast_dispatcher", "converters"}:
170
setattr(child, attr, getattr(self, attr))
171
172
return child
0 commit comments