We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37cfb54 commit f73876eCopy full SHA for f73876e
python/ql/src/Classes/ShouldBeContextManager.ql
@@ -14,8 +14,8 @@
14
15
import python
16
17
-from ClassObject c
18
-where not c.isC() and not c.isContextManager() and exists(c.declaredAttribute("__del__"))
+from ClassValue c
+where not c.isBuiltin() and not c.isContextManager() and exists(c.declaredAttribute("__del__"))
19
select c,
20
"Class " + c.getName() +
21
" implements __del__ (presumably to release some resource). Consider making it a context manager."
0 commit comments