grayjk
grayjk
poke @jquast @avylove hoping this can get merged so I can remove a workaround for #273. thanks!
Affect on pylint 3.3.7: ```bash $ PYTHONPATH=x.zip python3 >>> import astroid >>> from pylint.checkers import utils >>> x = astroid.extract_node(''' ... from xxx.test import func ... func #@ ... ''')...
Recommend running `pyupgrade --py38-plus` to remove other python2-isms from the code see https://github.com/asottile/pyupgrade
For code like: ```python from wrapt import FunctionWrapper, synchronized ``` mypy with --no-implicit-reexport outputs the errors: ``` error: Module "wrapt" does not explicitly export attribute "FunctionWrapper" error: Module "wrapt" does...
When ``--disallow-any-generic`` is enabled, it requires an annotation for: ```python a = (None, []) ``` that conflicts with the warning from ``--warn-redundant-annotation``
Testing this on an internal project that uses [sphinx-autodoc-typehints](https://github.com/tox-dev/sphinx-autodoc-typehints), this branch warns on a redundant type hint that is meant for the sphinx generated documentation. An unfortunate downside
> I'd say this check should only fire for function locals. Updated to this