Skip to content

Commit 1214b65

Browse files
committed
Pre-commit fix
1 parent 5e5b81f commit 1214b65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/attr_doc_gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class AttrList:
1313
def __init__(self, cls_name, cls_attrs) -> None:
1414
self.cls_name = cls_name
15-
self.config_attrs = [attr for attr in cls_attrs if attr.configurable == True]
15+
self.config_attrs = [attr for attr in cls_attrs if attr.configurable is True]
1616
self.type_attrs = [attr for attr in cls_attrs if attr.__class__.__name__ == 'TypeAttribute']
1717
self.weight_attrs = [attr for attr in cls_attrs if attr.__class__.__name__ == 'WeightAttribute']
1818
self.base_attrs = [attr for attr in cls_attrs if attr not in self.config_attrs + self.type_attrs + self.weight_attrs]

0 commit comments

Comments
 (0)