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

Change the typing spec around string references#2144

Draft
davidhalter wants to merge 9 commits intopython:main from
davidhalter:string-annotations
Draft

Change the typing spec around string references #2144
davidhalter wants to merge 9 commits intopython:main from
davidhalter:string-annotations

Conversation

@davidhalter
Copy link
Contributor

@davidhalter davidhalter commented Jan 4, 2026
edited
Loading

I added this after the discussion here: https://discuss.python.org/t/annotation-string-references-in-class-scope-in-conformance-tests/105439

I'm not 100% sure about the wording, but I hope the direction is fine. I would like to gather some feedback before presenting this to the typing council.

Please also merge #2139 before this pull request. Otherwise it will be very hard to update Zuban's conformance test results in this pull request.

@davidhalter davidhalter marked this pull request as ready for review January 4, 2026 23:55
@davidhalter davidhalter marked this pull request as draft January 4, 2026 23:55
Copy link
Contributor Author

@JelleZijlstra Could you please pre-review this? What do you think about this spec change?

@srittau srittau added the topic: typing spec For improving the typing spec label Jan 5, 2026
Copy link
Contributor Author

I think I have integrated all the changes. Is it time to open an issue on the Typing Council’s issue tracker asking for a decision?

Copy link
Member

@carljm carljm left a comment

Choose a reason for hiding this comment

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

One wording nit, one formatting nit, and one conformance suite nit :) But overall this looks great to me.

Copy link
Collaborator

@rchen152 rchen152 left a comment

Choose a reason for hiding this comment

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

Looks good to me - much more consistent and clearly specified than before

Copy link
Member

@carljm carljm left a comment

Choose a reason for hiding this comment

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

This looks good to me. Thanks @davidhalter for getting this clarified.

Copy link
Contributor Author

I have integrated all of Carl's suggestions. I will update the conformance tests as soon as the typing council approves this change. If I update it now we probably just run into merge conflicts, since especially pyrefly changes a lot.

@carljm Please let me know if you think something needs more work.

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

Reviewers

@erictraut erictraut erictraut requested changes

@carljm carljm carljm approved these changes

@JelleZijlstra JelleZijlstra JelleZijlstra approved these changes

@rchen152 rchen152 rchen152 approved these changes

Assignees

No one assigned

Labels

topic: typing spec For improving the typing spec

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /