⬆️ pre-commit: upgrade flake8-bugbear & fix issues

This commit is contained in:
Gina Häußge committed 2022-03-23 10:55:12 +01:00
1 parent bf96e6321f
commit 37bc874131
5 files changed
+6 -7

No files matched your search

+1 -1
View File
@@ -1428,7 +1428,7 @@ class BlueprintPlugin(OctoPrintPlugin, RestartNeedingPlugin):
# we now iterate over all members of ourselves and look if we find an attribute
# that has data originating from one of our decorators - we ignore anything
# starting with a _ to only handle public stuff
for member in [member for member in dir(self) if not member.startswith("_")]:
for member in [x for x in dir(self) if not x.startswith("_")]:
f = getattr(self, member)
if hasattr(f, "_blueprint_rules") and member in f._blueprint_rules: