Skip to content

Commit f7a0530

Browse files
authored
stubtest: warn about missing __del__ (#16456)
Fixes #16414
1 parent 8ae84ed commit f7a0530

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

mypy/stubtest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,6 @@ def verify_typealias(
13811381
"__annotations__",
13821382
"__text_signature__",
13831383
"__weakref__",
1384-
"__del__", # Only ever called when an object is being deleted, who cares?
13851384
"__hash__",
13861385
"__getattr__", # resulting behaviour might be typed explicitly
13871386
"__setattr__", # defining this on a class can cause worse type checking

0 commit comments

Comments
 (0)