Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imported types for arguments before positional-only marker reported unused #3462

Closed
ghost opened this issue Mar 27, 2020 · 0 comments
Closed

Comments

@ghost
Copy link

ghost commented Mar 27, 2020

Steps to reproduce

from typing import AnyStr, Set
def func(arg: AnyStr, /, arg2: Set[str]):
    pass

Current behavior

example.py:1:0: W0611: Unused AnyStr imported from typing (unused-import)

Expected behavior

No warning shown

pylint --version output

pylint 2.4.4
astroid 2.3.3
Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants