Find dead Python code
locals()
(jingw, #225).getattr/hasattr(obj, "constant_string", ...)
as a reference to
obj.constant_string
(jingw, #219).x.some_name
but reading via
some_name
, at the cost of potential false negatives (jingw, #221).pyproject.toml
(Michel Albert, #164, #215).# type: ...
comments if on Python 3.8+ (jingw, #220).test
or tests
directories test files
(Jendrik Seipp).logging.Logger.propagate
attribute (Jendrik Seipp).__init__.py
(RJ722, #192).string.Formatter
(Joseph Bylund, #183).