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

Fix node.statement overload typing #1308

Merged
merged 2 commits into from
Dec 22, 2021

Conversation

cdce8p
Copy link
Member

@cdce8p cdce8p commented Dec 22, 2021

Description

Based on #1263 (comment)

The node.statement() overloads should only allow two different call signatures:

  • node.statement()
  • node.statement(future=True)

Without this change, node.statement(future=None) would also be valid.

--
Pylint issue for false-positive with arguments-differ and overloads: pylint-dev/pylint#5264

@cdce8p cdce8p added the Maintenance Discussion or action around maintaining astroid or the dev workflow label Dec 22, 2021
@cdce8p cdce8p added this to the 2.9.1 milestone Dec 22, 2021
@cdce8p cdce8p merged commit 7d3b41c into pylint-dev:main Dec 22, 2021
@cdce8p cdce8p deleted the fix-statement-overload branch December 22, 2021 09:10
tushar-deepsource pushed a commit to tushar-deepsource/astroid that referenced this pull request Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Discussion or action around maintaining astroid or the dev workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants