quora / pyanalyze

A Python type checker
Apache License 2.0
349 stars 35 forks source link

Maybe replace dependency on codemod with another library? #509

Open besfahbod opened 2 years ago

besfahbod commented 2 years ago

https://github.com/quora/pyanalyze/blob/b20132810f8519b3b8302fc190a372f1f7a52340/pyanalyze/node_visitor.py#L10

https://pypi.org/project/codemod/ hasn't been updated since 2017 and its cli doesn't even work under a PY3.6 environment anymore.

Maybe there's an alternative, up-to-date datatype we can use here, so we can retire the codemod package usage?

JelleZijlstra commented 2 years ago

We could perhaps also make the dependency optional; it's used only in rare cases.