Skip to content

Commit 1928a52

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 84b7ce7 commit 1928a52

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mypyc/irbuild/util.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,12 @@ def is_extension_class(cdef: ClassDef) -> bool:
133133
return False
134134

135135
# Classes that have any decorator other than supported decorators, are not extension classes
136-
if (not is_trait_decorator(d)
136+
if (
137+
not is_trait_decorator(d)
137138
and not is_dataclass_decorator(d)
138139
and not mypyc_attr_call
139-
and not is_final_decorator(d)):
140+
and not is_final_decorator(d)
141+
):
140142
return False
141143

142144
if cdef.info.typeddict_type:

0 commit comments

Comments
 (0)