You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
New analyser: Crash in attrs plugin on bad or deferred name #7098
[case testTypeInAttrBad]
import attr
@attr.s
class C:
total = attr.ib(type=Bad)
[builtins fixtures/bool.pyi]
and
[case testTypeInAttrBad2]
import attr
@attr.s
class C:
total = attr.ib(default=func())
def func(): ...
[builtins fixtures/bool.pyi]
Both crash with an assertion error because plugin doesn't expect a placeholder in class symbol table. I didn't check dataclasses, but likely there is a similar issue.
Activity
New analyser: fix crashes when plugins encounter a placeholder node (#…