Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PEP 747: Minor fixes in code examples #4193

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

sharkdp
Copy link
Contributor

@sharkdp sharkdp commented Jan 8, 2025

  • Added missing generic parameter for strip_annotated_metadata
  • Use the correct typx parameter name for TypeForm arguments in the split_union and as_instance / as_type examples.
  • Add from typing import TypeForm, cast imports to make the usage of typing symbols consistent

📚 Documentation preview 📚: https://pep-previews--4193.org.readthedocs.build/

- Added missing generic parameter for `strip_annotated_metadata`
- Use the correct `typx` parameter name for `TypeForm` arguments in
  the `split_union` and `as_instance` / `as_type` examples.
- Add `from typing import TypeForm, cast` imports to make the usage
  of `typing` symbols consistent
@sharkdp sharkdp requested a review from JelleZijlstra as a code owner January 8, 2025 10:09
Copy link

cpython-cla-bot bot commented Jan 8, 2025

All commit authors signed the Contributor License Agreement.
CLA signed

@JelleZijlstra
Copy link
Member

cc @adriangb

@JelleZijlstra JelleZijlstra merged commit 85f165e into python:main Jan 10, 2025
6 checks passed
@adriangb
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants