Open MartinCastroAlvarez opened 4 months ago
deadcode
only works with python3.10+ at the moment, because lower Python versions have limited core ast
package implementation.
I see two options, how it would be possible to deal with this issue:
ast
implementation from higher Python versions could be extracted and backported to lower versions. But as I see it would require significant effort, since ast
implementation is tightly coupled with C codedeadcode
package could implement the missing ast
features in the lower Python versions. However, this is not a priority until deadcode
feature set becomes stable.
I am getting this error when I try to run this command on a directory within Django with just a bunch of Python files with subdirectories.