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.
1 parent 5e5b81f commit 1214b65Copy full SHA for 1214b65
docs/attr_doc_gen.py
@@ -12,7 +12,7 @@
12
class AttrList:
13
def __init__(self, cls_name, cls_attrs) -> None:
14
self.cls_name = cls_name
15
- self.config_attrs = [attr for attr in cls_attrs if attr.configurable == True]
+ self.config_attrs = [attr for attr in cls_attrs if attr.configurable is True]
16
self.type_attrs = [attr for attr in cls_attrs if attr.__class__.__name__ == 'TypeAttribute']
17
self.weight_attrs = [attr for attr in cls_attrs if attr.__class__.__name__ == 'WeightAttribute']
18
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