Repository navigation
gh-145524: Update comment for TypeVar S in typing.rst - #145525
Conversation
Clarified the comment for type variable S to specify it can be str or any subtype of str.
AlexWaygood
left a comment
There was a problem hiding this comment.
The existing text is correct, since str is a subtype of str -- "any subtype of str" includes str 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
Documentation build overview
|
|
This PR is stale because it has been open for 90 days with no activity. |
|
Thanks @hyperkai for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
|
GH-162788 is a backport of this pull request to the 3.15 branch. |
|
GH-162789 is a backport of this pull request to the 3.14 branch. |
|
GH-162790 is a backport of this pull request to the 3.13 branch. |
|
Thanks @hyperkai for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15. |
|
Sorry @hyperkai and @JelleZijlstra, I had trouble completing the backport. Please retry by removing and re-adding the "needs backport to 3.15" label. |
Fix: #145524
boundparameter oftyping.TypeVaraccepts should be explained more clearly #145524📚 Documentation preview 📚: https://cpython-previews--145525.org.readthedocs.build/