We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7f36ff2 + 85104e7 commit 043490cCopy full SHA for 043490c
src/tap/tap.py
@@ -546,8 +546,12 @@ def _get_class_variables(self) -> dict:
546
class_variables = self._get_from_self_and_super(extract_func=get_class_variables)
547
548
# Handle edge-case of source code modification while code is running
549
- variables_to_add = class_variable_names - class_variables.keys()
550
- variables_to_remove = class_variables.keys() - class_variable_names
+ variables_to_add = (
+ variable for variable in class_variable_names if variable not in class_variables
551
+ )
552
+ variables_to_remove = (
553
+ variable for variable in class_variables.keys() if variable not in class_variable_names
554
555
556
for variable in variables_to_add:
557
class_variables[variable] = {"comment": ""}
0 commit comments