Similar to #3576, parse_classes skips a deleted class, but its methods and instance attributes stay in the report as dangling symbols:
class Gone:
def method(self, x):
pass
def __init__(self):
self.attr = 1
del Gone
WARN `Gone.method` is untyped [coverage-missing]
--> del_class.py:2:5
|
2 | / def method(self, x):
3 | | pass
| |____________-
|
WARN `Gone.attr` is untyped [coverage-missing]
--> del_class.py:5:14
|
5 | self.attr = 1
| ----
|
ERROR type coverage 0.00% (0 of 3 typable) is below the 100.00% threshold
this should have passed with 0/0 typable.
Similar to #3576,
parse_classesskips adeleted class, but its methods and instance attributes stay in the report as dangling symbols:this should have passed with 0/0 typable.