-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
PEP 747: TypeExpr: Type Hint for a Type Expression #3798
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
564484a
PEP 755: TypeExpr: Type Hint for a Type Expression
davidfstr 93aa917
Update .github/CODEOWNERS
davidfstr 4ed4602
Update Created header
davidfstr 0bbbd9c
Post-History: Recognize discuss.python.org post links without trailin…
davidfstr 836a89a
Include only draft 1 and 2 links in Post-History. Remove Discussions-…
davidfstr 6d5de2b
Change PEP number: 755 -> 747
davidfstr 5737d06
Rewrite some PEP links using :pep:`...`
davidfstr 9bbd9fc
Add code formatting in many places
davidfstr 4352ac2
Formatting
davidfstr 38ca3a1
Clarify statement about ForwardRefs
davidfstr 3014728
Formatting
davidfstr 2552bd0
Wordsmithing
davidfstr 1c6a7af
PEP 12: Extract Intersphinx section. Add example of Intersphinx refer…
davidfstr 433b557
Rewrite links to Typing specification to use Intersphinx references
davidfstr c997363
Change Optional[str] example in introductions to (str | None)
davidfstr c967db2
Revert "Post-History: Recognize discuss.python.org post links without…
davidfstr 5e548ac
Alter draft 2 URL to non-canonical form to pass lint check
davidfstr f78c53b
Using TypeExprs: Clarify that TypeExpr is itself a type expression
davidfstr ad0d357
Remove some details about how TypeExpr is implemented at runtime
davidfstr a12fbb1
Affected signatures in the standard library: Elide the full signature…
davidfstr 732ebf0
Clarify that class objects can usually, but not always, be instantiated
davidfstr 3105326
Stringified TypeExprs: Clarify that behavior follows from TypeExpr be…
davidfstr fb83901
Clarify that (Any | None) is not the same as (Any)
davidfstr 403a29d
Reformat Annotated link to be all on one line
davidfstr 56ba5fe
Literal: Remove low-value example
davidfstr 7c5911d
Non-Universal Type Expressions: Leave behaviors undefined
davidfstr e9cc932
"constrain" -> "parameterized by"
davidfstr cd51ef1
Shape -> MyTypedDict
davidfstr 69ba1ee
"must" -> "already must"
davidfstr 8a678fe
"constrain" -> "parameterized by" (Take 2)
davidfstr 11a1e88
Add Rationale section, explaining what a type expression is and why i…
davidfstr f21077f
Non-Universal TypeExprs: Remove explanations of where Self, TypeGuard…
davidfstr 9e58966
Static vs. Runtime Representations of TypeExprs: Streamline
davidfstr bf0ed38
Subtyping: Fix missing formatting for "object"
davidfstr 098192b
Interactions with Annotated[]: Remove section
davidfstr 2394391
How to Teach This: Rewrite section, integrating some prior 'Interacti…
davidfstr e035ecd
Revert "PEP 12: Extract Intersphinx section. Add example of Intersphi…
davidfstr dab1a63
Mention that dataclasses.make_dataclass() specially handles InitVar
davidfstr d3b7ec3
Explicit/Implicit TypeExpr Values: Add sections
davidfstr 1c49cb6
Non-Universal TypeExprs: Inline section to initial 'TypeExpr Values' …
davidfstr 64f510f
Wordsmith
davidfstr 916e90a
Backwards Compatibility: Mention new rules for recognizing type expre…
davidfstr 7e9b446
Motivation: Optionals -> unions
davidfstr f2b4818
Remove mentions to the is-consistent-with relationship, which is bein…
davidfstr 4c2d5ab
Support pattern matching on type expressions: Clarify examples use a …
davidfstr ecafabc
Grammar
davidfstr bcc127e
Apply minor feedback
davidfstr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add Rationale section, explaining what a type expression is and why i…
…t's used
- Loading branch information
commit 11a1e88eb7c52cb200c95e23d189bcf0bfd33218
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.