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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

(馃悶) false error unnecessary-ellipsis when ellipsis (...) is used as a value #5973

Closed
KotlinIsland opened this issue Mar 25, 2022 · 0 comments 路 Fixed by #6007
Closed

(馃悶) false error unnecessary-ellipsis when ellipsis (...) is used as a value #5973

KotlinIsland opened this issue Mar 25, 2022 · 0 comments 路 Fixed by #6007
Labels
False Positive 馃 A message is emitted but nothing is wrong with the code

Comments

@KotlinIsland
Copy link
Contributor

Bug description

from types import EllipsisType


def foo(a: EllipsisType = ...) -> None:
    ""

Seems to be that the doc string triggers it for some reason.

Configuration

No response

Command used

pylint test.py

Pylint output

************* Module test
test.py:4:26: W2301: Unnecessary ellipsis constant (unnecessary-ellipsis)

Expected behavior

no error

Pylint version

pylint 2.13.0
astroid 2.11.1
Python 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)]

OS / Environment

No response

Additional dependencies

No response

@KotlinIsland KotlinIsland added the Needs triage 馃摜 Just created, needs acknowledgment, triage, and proper labelling label Mar 25, 2022
@Pierre-Sassoulas Pierre-Sassoulas added False Positive 馃 A message is emitted but nothing is wrong with the code and removed Needs triage 馃摜 Just created, needs acknowledgment, triage, and proper labelling labels Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
False Positive 馃 A message is emitted but nothing is wrong with the code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants