Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Handle deferred evaluation of annotations in Python 3.14#10381

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
cdce8p wants to merge2 commits intopylint-dev:main
base:main
Choose a base branch
Loading
fromcdce8p:3.14-deferred-annotations

Conversation

cdce8p
Copy link
Member

Closes#10149

@cdce8pcdce8p added this to the4.0.0 milestoneMay 14, 2025
@cdce8pcdce8p added typing C: used-before-assignmentIssues related to 'used-before-assignment' check C: undefined-variableIssues related to 'undefined-variable' check python 3.14 labelsMay 14, 2025
@cdce8p
Copy link
MemberAuthor

We should wait until we can test 3.14 in CI before merging this.

I also don't really like that we need to duplicate a lot of tests. Maybe we can come up with a better solution for dealing conditional errors in our tests.

@cdce8pcdce8p marked this pull request as draftMay 14, 2025 16:08
@github-actionsGitHub Actions

This comment has been minimized.

@Pierre-Sassoulas
Copy link
Member

Great !

We should wait until we can test 3.14 in CI before merging this.

Agree, so it's Blocked bypylint-dev/astroid#2731 and then the pylint equivalent.

I also don't really like that we need to duplicate a lot of tests. Maybe we can come up with a better solution for dealing conditional errors in our tests.

Maybe time to design something to be able to expect something different according to the version ?
filename.py

something=1# [unused-variable|>=3.13,missing-module-docstring]

Withfilename.3.14.txt for the expected output of 3.14,filename.txt for the default expected output if the interpreter does not have its specific output file...

cdce8p reacted with thumbs up emoji

@Pierre-SassoulasPierre-Sassoulas added the Blocked 🚧Blocked by a particular issue labelMay 14, 2025
@cdce8pcdce8pforce-pushed the3.14-deferred-annotations branch from32635df to8615074CompareMay 14, 2025 23:21
@cdce8p
Copy link
MemberAuthor

cdce8p commentedMay 14, 2025
edited
Loading

I also don't really like that we need to duplicate a lot of tests. Maybe we can come up with a better solution for dealing conditional errors in our tests.

Maybe time to design something to be able to expect something different according to the version ?filename.py

something=1# [unused-variable|>=3.13,missing-module-docstring]

Withfilename.3.14.txt for the expected output of 3.14,filename.txt for the default expected output if the interpreter does not have its specific output file...

Explored something like this in#10382. The diff here would look much better, see379ab07.

@cdce8pcdce8pforce-pushed the3.14-deferred-annotations branch from8615074 to379ab07CompareMay 14, 2025 23:33
@github-actionsGitHub Actions
Copy link
Contributor

🤖 According to the primer, this change hasno effect on the checked open source code. 🤖🎉

This comment was generated for commit379ab07

Copy link
Member

@Pierre-SassoulasPierre-Sassoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM, but blocked by preliminary MRs.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@Pierre-SassoulasPierre-SassoulasPierre-Sassoulas requested changes

Requested changes must be addressed to merge this pull request.

Assignees
No one assigned
Labels
Blocked 🚧Blocked by a particular issueC: undefined-variableIssues related to 'undefined-variable' checkC: used-before-assignmentIssues related to 'used-before-assignment' checkpython 3.14typing
Projects
None yet
Milestone
4.0.0
Development

Successfully merging this pull request may close these issues.

3.14 annotation evaluation is deferred
2 participants
@cdce8p@Pierre-Sassoulas

[8]ページ先頭

©2009-2025 Movatter.jp