PEP585 deprecated using some of the classes from t...
# general
d
PEP585 deprecated using some of the classes from the
typing
module. Is there a way to encourage folks to avoid using the things that were deprecated by PEP585 in my Pants repo? We're currently using autoflake, black, flake8, and isort for linting. I found a flake8 plugin that does this; is there a way that I can use that from Pants?
f
This should be possible. What version of Pants are you using? It can vary a bit between versions how you do this https://www.pantsbuild.org/docs/python-linters-and-formatters has a section “Configuring the tools…” that describes how to do this by adding a custom resolve. That will work for 2.16. If you’re on an older version you might need to toggle the docs to your version to see how to do it
d
Oh cool. I was looking at the docs for the flake8 pants plugin and saw that I could specify a resolve for it, but wasn't sure if that was the way to go or not. That page clears things up. Thank you!