Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-116126: Implement PEP 696#116129
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
gh-116126: Implement PEP 696#116129
Changes from1 commit
e7ca092828679ed3b472b6e467eefa4858049b077b5cfd5e201b32707a69204a2650080c282978aa5b27bdd01bb2c28b9ab0d467fd7e91e235226b42e079eee0370527b15f1111bd102c54aeed71a348b900cd40c13420b8a08c62613159f4e0435e7d54ace12581d82b5a102a2c48c929b9435326de176f667757efa4ce29ad8432c04c147d4f3fd1a143675890d7919a7b48ef0616b9d4e8422686b9798d1decfbb6405e0ccfeb15aaff986f5aed3e0c0fcf5a3d4b92ea1085f6fdfdb3f053c8c3e0b4File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1756,9 +1756,17 @@ without the dedicated syntax, as documented below. | ||
| .. attribute:: __default__ | ||
| The default value of the type variable, or :data:`typing.NoDefault` if it | ||
| has no default. | ||
| .. versionadded:: 3.13 | ||
| .. method:: has_default() | ||
| Return whether or not the type variable has a default value. This is equivalent | ||
| to checking whether :attr:`__default__` is not equal to :data:`typing.NoDefault`, | ||
| except that it does not force evaluation of the | ||
JelleZijlstra marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| :ref:`lazily evaluated <lazy-evaluation>` default value. | ||
| .. versionadded:: 3.13 | ||
| @@ -1886,9 +1894,17 @@ without the dedicated syntax, as documented below. | ||
| .. attribute:: __default__ | ||
| The default value of the type variable tuple, or :data:`typing.NoDefault` if it | ||
| has no default. | ||
| .. versionadded:: 3.13 | ||
| .. method:: has_default() | ||
| Return whether or not the type variable tuple has a default value. This is equivalent | ||
| to checking whether :attr:`__default__` is not equal to :data:`typing.NoDefault`, | ||
| except that it does not force evaluation of the | ||
JelleZijlstra marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| :ref:`lazily evaluated <lazy-evaluation>` default value. | ||
| .. versionadded:: 3.13 | ||
| @@ -1974,9 +1990,17 @@ without the dedicated syntax, as documented below. | ||
| .. attribute:: __default__ | ||
| The default value of the parameter specification, or :data:`typing.NoDefault` if it | ||
| has no default. | ||
| .. versionadded:: 3.13 | ||
| .. method:: has_default() | ||
| Return whether or not the parameter specification has a default value. This is equivalent | ||
| to checking whether :attr:`__default__` is not equal to :data:`typing.NoDefault`, | ||
| except that it does not force evaluation of the | ||
JelleZijlstra marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| :ref:`lazily evaluated <lazy-evaluation>` default value. | ||
| .. versionadded:: 3.13 | ||
| @@ -3213,9 +3237,9 @@ Introspection helpers | ||
| A sentinel object used to indicate that a type parameter has no default | ||
| value. For example: | ||
| .. doctest:: | ||
| >>> T = TypeVar("T") | ||
| >>> T.__default__ is typing.NoDefault | ||
| True | ||
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.