Skip to content

Conversation

@JelleZijlstra
Copy link
Member

@JelleZijlstra JelleZijlstra commented May 21, 2023

  • AnyStr can be used in type annotations, contrary to the section header
  • Unpack can also be used in annotations, and its use is not restricted to generics. It makes more sense with other building blocks like Required.
  • Protocol is not necessarily generic.

Also fix the indentation for two notes associated with Concatenate.

Split off from GH-104642, but I think this change is independently an improvement..
(cherry picked from commit ab71acd)


📚 Documentation preview 📚: https://cpython-previews--104721.org.readthedocs.build/

…ythonGH-104707)

- AnyStr can be used in type annotations, contrary to the section header
- Unpack can also be used in annotations, and its use is not restricted
  to generics. It makes more sense with other building blocks like Required.
- Protocol is not necessarily generic.

Also fix the indentation for two notes associated with Concatenate.

Split off from pythonGH-104642, but I think this change is independently an
improvement..
(cherry picked from commit ab71acd)

Co-authored-by: Jelle Zijlstra <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants