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

gh-145524: Update comment for TypeVar S in typing.rst#145525

Open
hyperkai wants to merge 1 commit intopython:mainfrom
hyperkai:hyperkai-patch-2
Open

gh-145524: Update comment for TypeVar S in typing.rst#145525
hyperkai wants to merge 1 commit intopython:mainfrom
hyperkai:hyperkai-patch-2

Conversation

@hyperkai
Copy link

@hyperkaihyperkai commentedMar 5, 2026
edited by github-actionsbot
Loading

Clarified the comment for type variable S to specify it can be str or any subtype of str.
Copy link
Member

@AlexWaygoodAlexWaygood left a comment

Choose a reason for hiding this comment

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

The existing text is correct, sincestr is a subtype ofstr -- "any subtype ofstr" includesstr itself. But I agree that not all users will necessarily be aware of that, so the edit does seem to make things clearer to me

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

Reviewers

@AlexWaygoodAlexWaygoodAlexWaygood approved these changes

@JelleZijlstraJelleZijlstraAwaiting requested review from JelleZijlstraJelleZijlstra is a code owner

Assignees

No one assigned

Labels

awaiting reviewdocsDocumentation in the Doc dirneeds backport to 3.13bugs and security fixesneeds backport to 3.14bugs and security fixesskip news

Projects

Status: Todo

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

What typebound parameter oftyping.TypeVar accepts should be explained more clearly

2 participants

@hyperkai@AlexWaygood

[8]ページ先頭

©2009-2026 Movatter.jp