From 1214b65a5e89ab6ce52429d131947014545aeeb0 Mon Sep 17 00:00:00 2001 From: Vladimir Loncar Date: Wed, 13 Nov 2024 21:17:14 +0100 Subject: [PATCH] Pre-commit fix --- docs/attr_doc_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/attr_doc_gen.py b/docs/attr_doc_gen.py index 8bade8683..605c7669e 100644 --- a/docs/attr_doc_gen.py +++ b/docs/attr_doc_gen.py @@ -12,7 +12,7 @@ class AttrList: def __init__(self, cls_name, cls_attrs) -> None: self.cls_name = cls_name - 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] self.type_attrs = [attr for attr in cls_attrs if attr.__class__.__name__ == 'TypeAttribute'] self.weight_attrs = [attr for attr in cls_attrs if attr.__class__.__name__ == 'WeightAttribute'] self.base_attrs = [attr for attr in cls_attrs if attr not in self.config_attrs + self.type_attrs + self.weight_attrs]