Age | Commit message (Collapse) | Author |
|
mainline-go-wifi-release
Change-Id: Ie90ba4ae1c617952ba8a1f38a11ad186aef99949
|
|
mainline-go-wifi-release
Change-Id: If4afc58c20ae3c55a14325bcdf790537302f438b
|
|
670c4eddc0
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/python/typing/+/18820311
Change-Id: Ic2c6494e26b4da7ad7e10c32be692c37be8ef791
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
Bug: 235099911
Test: TH
Change-Id: Ic4b5b1512c5bed482c8d0a5281b4c8c85421f548
|
|
Test: presubmit
Bug: 234458076
Change-Id: Iff56a42c8c919d18de6053e236d2e2b5a131a071
|
|
Test: presubmit
Bug: 234458076
Change-Id: I310b83b9d87fe151a1fd37c1f175518b8c6484d5
|
|
a90fb3c4d9 am: f8e1873b59 am: 2ef2783001 am: f6ac0eb79f
Original change: https://android-review.googlesource.com/c/platform/external/python/typing/+/2063011
Change-Id: I1450cc3754b81bd0a351e30bbb8efcb52a12c7e9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
a90fb3c4d9 am: f8e1873b59 am: 2ef2783001
Original change: https://android-review.googlesource.com/c/platform/external/python/typing/+/2063011
Change-Id: I9a4a000a319813d1853e835ac1bad3415a0942b7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
a90fb3c4d9 am: f8e1873b59
Original change: https://android-review.googlesource.com/c/platform/external/python/typing/+/2063011
Change-Id: I9adcfc2ebd7138700477a653c9f068d3466c1d87
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
Original change: https://android-review.googlesource.com/c/platform/external/python/typing/+/2063011
Change-Id: Ic80c3be8384c1a71d3aa5e6e69e260c73dc0e442
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
Bug: 228235300
Bug: 228457005
Test: TH
Change-Id: I5f6481c917c33c13446827a4237dd29d66769116
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This is a slightly broader refactor than just testing. It also
consolidates information about checking type coverage/completeness.
This originates from a thread on the mypy tracker [1]. In terms of
presentation, the goal is to present guidance and offer up several
options, many of which were proposed by contributors to that thread.
Several of the goals from that thread were not achieved here,
including documentation covering stubgen and monkeytype, stubtest, and
potentially more. However, the document is written such that it should
be possible to add a section on "Generating Annotations" as was
planned earlier.
[1]: https://github.com/python/mypy/issues/11506
|
|
This is what I've actually been doing, but better to document it.
|
|
|
|
|
|
|
|
Closes: #1067
|
|
|
|
|
|
It's no longer necessary to use `# type: ignore`s for many uses of `ParamSpec` (hooray!)
|
|
get_type_hints() (#1057)
* PEP 655 Add interaction w/ required/optional keys
Change TypedDict to respect keys that are marked as Required
or NotRequired (requires PEP 560).
Make TypedDict and is_typeddict accessible if typing
doesn't implement Required.
* PEP 655 Add interaction with get_type_hints()
Replace _strip_annotations() with _strip_extras() to strip Annotated, Required
and NotRequired.
Change get_type_hints() to pass include_extras=True to newer versions of
typing.get_type_hints() and use _strip_extras().
Make get_type_hints accessible if typing
doesn't implement Required.
|
|
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
|
|
Backport of python/cpython#30842, with additional tests from @sobolevn's python/cpython#31222.
|
|
|
|
|
|
|
|
|
|
Co-authored-by: Erik De Bonte <erikd@microsoft.com>
|
|
|
|
|
|
|
|
As promised in https://bugs.python.org/issue46386
Backported:
- https://github.com/python/cpython/pull/30619
Not backported:
- https://github.com/python/cpython/pull/30613 (because `ParamSpec` is already tested with `pickle` using all protocols)
|
|
|
|
|
|
|
|
typing exists in all supported Python versions
|
|
(#1024)
As pointed out in #1023, there is no risk of incompatibility, since the
requires-python field will prevent installation on older Python versions.
|
|
* Test on Python 3.11 pre-releases
* Update linter config
|
|
Per the Python docs and PEPs, `TypeAlias` appears to have been defined in PEP 613, not PEP 610.
|
|
|
|
|