Home
last modified time | relevance | path

Searched +full:typing_extensions +full:- (Results 1 – 25 of 42) sorted by relevance

12

/external/python/typing/.github/workflows/
Dpackage.yml13 runs-on: ubuntu-latest
16 - uses: actions/checkout@v2
18 - name: Set up Python
19 uses: actions/setup-python@v2
21 python-version: 3
23 - name: Install pypa/build
26 # accidentally pick up typing_extensions as installed by a dependency
27 python -m pip install --upgrade build
28 python -m pip list
30 - name: Build and install wheel
[all …]
Dci.yml15 fail-fast: false
20 # https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
21 … python-version: ["3.7", "3.7.1", "3.8", "3.8.0", "3.9", "3.9.0", "3.10", "3.10.0", "3.11-dev"]
23 runs-on: ubuntu-latest
26 - uses: actions/checkout@v2
28 - name: Set up Python
29 uses: actions/setup-python@v2
31 python-version: ${{ matrix.python-version }}
33 - name: Test typing_extensions
34 continue-on-error: ${{ matrix.python-version == '3.11-dev' }}
[all …]
/external/python/typing/
DCONTRIBUTING.md6 The `typing_extensions` module provides a way to access new features from the standard
8 `typing.TypeGuard`, but users of older versions of Python can use `typing_extensions` to
12 are encouraged to also implement the feature in `typing_extensions`. Because the runtime
16 `typing_extensions` may also include experimental features that are not yet part of the
21 `typing_extensions` supports Python versions 3.7 and up.
25 Starting with version 4.0.0, `typing_extensions` uses
27 backwards-incompatible changes.
31 - Ensure that GitHub Actions reports no errors.
33 - Update the version number in `typing_extensions/pyproject.toml` and in
34 `typing_extensions/CHANGELOG`.
[all …]
DREADME.md1 …://gitter.im/python/typing?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=bad…
7 -------------------------
15 [typing-sig](https://mail.python.org/mailman3/lists/typing-sig.python.org/)
20 ------------------
24 - The `typing_extensions` module lives in the
25 [typing\_extensions](./typing_extensions) directory.
27 - The documentation at [typing.readthedocs.io](https://typing.readthedocs.io/)
30 - A [discussion forum](https://github.com/python/typing/discussions) for typing-related user
39 --------
D.flake83 max-line-length = 90
14 # and its own specific config in .flake8-tests
15 typing_extensions/src/test_typing_extensions.py,
/external/python/typing/typing_extensions/
DREADME.rst7 …:target: https://gitter.im/python/typing?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&u…
12 The ``typing_extensions`` module serves two related purposes:
14 - Enable use of new type system features on older Python versions. For example,
15 ``typing.TypeGuard`` is new in Python 3.10, but ``typing_extensions`` allows
17 - Enable experimentation with new type system PEPs before they are accepted and
20 New features may be added to ``typing_extensions`` as soon as they are specified
26 Starting with version 4.0.0, ``typing_extensions`` uses
28 major version is incremented for all backwards-incompatible changes.
30 on ``typing_extensions`` like this: ``typing_extensions >=x.y, <(x+1)``,
33 ``typing_extensions`` supports Python versions 3.7 and higher. In the future,
[all …]
DCHANGELOG3 - Add `typing.assert_type`. Backport from bpo-46480.
4 - Drop support for Python 3.6. Original patch by Adam Turner (@AA-Turner).
8 - Fix importing `typing_extensions` on Python 3.7.0 and 3.7.1. Original
13 - Runtime support for PEP 646, adding `typing_extensions.TypeVarTuple`
14 and `typing_extensions.Unpack`.
15 - Add interaction of `Required` and `NotRequired` with `__required_keys__`,
16 `__optional_keys__` and `get_type_hints()`. Patch by David Cabot (@d-k-bo).
17 - Runtime support for PEP 675 and `typing_extensions.LiteralString`.
18 - Add `Never` and `assert_never`. Backport from bpo-46475.
19 - `ParamSpec` args and kwargs are now equal to themselves. Backport from
[all …]
DAndroid.bp7 // http://www.apache.org/licenses/LICENSE-2.0
19 name: "typing_extensions",
23 "src/typing_extensions.py",
25 pkg_path: "typing_extensions",
D__init__.py23 # Super-special typing primitives.
54 # One-off things.
111 if (num_tv_tuples > 0) and (alen >= elen - num_tv_tuples):
154 # 3.6.0-3.6.1
162 def stop() -> NoReturn:
197 return 'typing_extensions.' + self._name
206 cannot be re-assigned or overridden in a subclass.
222 cannot be re-assigned or overridden in a subclass.
287 def done(self) -> None:
290 def done(self) -> None: # Error reported by type checker
[all …]
Dpyproject.toml2 [build-system]
4 build-backend = "flit_core.buildapi"
8 name = "typing_extensions"
12 requires-python = ">=3.7"
13 urls.Home = "https://github.com/python/typing/blob/master/typing_extensions/README.rst"
31 "Development Status :: 3 - Alpha",
46 # Project metadata -- authors. Flit stores this as a list of dicts, so it can't
/external/python/typing/typing_extensions/src/
Dtest_typing_extensions.py20 import typing_extensions
21 from typing_extensions import NoReturn, ClassVar, Final, IntVar, Literal, Type, NewType, TypedDict,…
22 from typing_extensions import TypeAlias, ParamSpec, Concatenate, ParamSpecArgs, ParamSpecKwargs, Ty…
23 from typing_extensions import Awaitable, AsyncIterator, AsyncContextManager, Required, NotRequired
24 from typing_extensions import Protocol, runtime, runtime_checkable, Annotated, overload, final, is_…
25 from typing_extensions import TypeVarTuple, Unpack, dataclass_transform, reveal_type, Never, assert…
26 from typing_extensions import assert_type, get_type_hints, get_origin, get_args
107 self.assertEqual(repr(NoReturn), 'typing_extensions.NoReturn')
110 def some(arg: NoReturn) -> NoReturn: ...
111 def some_str(arg: 'NoReturn') -> 'typing.NoReturn': ...
[all …]
Dtyping_extensions.py12 # Super-special typing primitives.
43 # One-off things.
95 if (num_tv_tuples > 0) and (alen >= elen - num_tv_tuples):
156 return 'typing_extensions.' + self._name
165 cannot be re-assigned or overridden in a subclass.
191 def done(self) -> None:
194 def done(self) -> None: # Error reported by type checker
211 # read-only property, TypeError if it's a builtin class.
228 return 'typing_extensions.' + self._name
256 # A few are simply re-exported for completeness.
[all …]
/external/mbedtls/scripts/mbedtls_dev/
Dtyping_util.py5 # SPDX-License-Identifier: Apache-2.0
11 # http://www.apache.org/licenses/LICENSE-2.0
21 # The typing_extensions module is necessary for type annotations that are
26 # with, typing_extensions), and if not define substitutes that lack the
29 from typing_extensions import Protocol #pylint: disable=import-error
32 #pylint: disable=too-few-public-methods
37 # pylint: disable=no-self-use,too-few-public-methods,unused-argument
38 def write(self, text: str) -> Any:
/external/openthread/third_party/mbedtls/repo/scripts/mbedtls_dev/
Dtyping_util.py5 # SPDX-License-Identifier: Apache-2.0
11 # http://www.apache.org/licenses/LICENSE-2.0
21 # The typing_extensions module is necessary for type annotations that are
26 # with, typing_extensions), and if not define substitutes that lack the
29 from typing_extensions import Protocol #pylint: disable=import-error
32 #pylint: disable=too-few-public-methods
37 # pylint: disable=no-self-use,too-few-public-methods,unused-argument
38 def write(self, text: str) -> Any:
/external/python/setuptools/setuptools/_vendor/
Dtyping_extensions.py43 # Super-special typing primitives.
71 # One-off things.
93 # 3.6.0-3.6.1
101 def stop() -> NoReturn:
136 return 'typing_extensions.' + self._name
145 cannot be re-assigned or overridden in a subclass.
161 cannot be re-assigned or overridden in a subclass.
216 # 3.6-3.7
225 def done(self) -> None:
228 def done(self) -> None: # Error reported by type checker
[all …]
Dvendored.txt3 ordered-set==3.1.1
10 typing_extensions==4.0.1
14 # validate-pyproject[all]==0.6 # Special handling in tools/vendored, don't uncomment or remove
/external/tensorflow/tensorflow/python/framework/
Dcomposite_tensor_gradient.py7 # http://www.apache.org/licenses/LICENSE-2.0
24 # pylint:disable=g-import-not-at-top
29 from typing_extensions import Protocol
30 from typing_extensions import runtime_checkable
31 # pylint:enable=g-import-not-at-top
165 left as-is, and `CompositeTensor`s are replaced with
/external/python/setuptools/tools/
Dvendored.py56 # required for zip-packaged setuptools #3084
75 text = file.read_text().replace('typing_extensions', '..typing_extensions')
108 data (as pip uninstall doesn't support -t).
121 '-m', 'pip',
123 '-r', str(vendor / 'vendored.txt'),
124 '-t', str(vendor),
154 """``validate-pyproject`` can be vendorized to remove all dependencies"""
156 (x for x in (vendor / "vendored.txt").lines() if 'validate-pyproject' in x),
157 "validate-pyproject[all]"
173 subprocess.check_call([venv_python, "-m", "pip", "install", pkg])
[all …]
/external/python/typing/docs/source/
Dunreachable.rst13 - ``Never``, the primitive type used for unreachable code
14 - ``assert_never()``, a helper for exhaustiveness checking
15 - Directly marking code as unreachable
16 - Detecting unexpectedly unreachable code
34 typing-extensions 4.1 add a new primitive, ``Never``. To type checkers,
57 from typing_extensions import Never
59 def assert_never(arg: Never) -> Never:
66 def calculate(left: int, op: Op, right: int) -> int:
71 return left - right
85 and is also present in ``typing_extensions`` starting at version 4.1.
[all …]
/external/python/mobly/mobly/
DAndroid.bp7 // http://www.apache.org/licenses/LICENSE-2.0
25 "py-portpicker",
26 "py-timeout-decorator",
29 "typing_extensions",
/external/tensorflow/tensorflow/python/types/
Dtrace.py7 # http://www.apache.org/licenses/LICENSE-2.0
30 from typing_extensions import Protocol
31 from typing_extensions import runtime_checkable
62 tf.function does not know when to re-use an existing concrete function in
95 get_mixed_flavor(Apple(), Mango()) # Re-uses the traced concrete function
100 def is_subtype_of(self, other: "TraceType") -> bool:
127 self, others: Sequence["TraceType"]) -> Optional["TraceType"]:
193 def __hash__(self) -> int:
197 def __eq__(self, other) -> bool:
220 def __tf_tracing_type__(self, context: TracingContext) -> TraceType:
[all …]
/external/python/pyee/
DAndroid.bp8 // http://www.apache.org/licenses/LICENSE-2.0
24 "SPDX-license-identifier-MIT",
37 "typing_extensions",
/external/tensorflow/tensorflow/
Dworkspace2.bzl13 load("//tensorflow/tools/toolchains/embedded/arm-linux:arm_linux_toolchain_configure.bzl", "arm_lin…
19 # Import third party repository rules. See go/tfbr-thirdparty.
115 build_file = "//tensorflow/tools/toolchains/embedded/arm-linux:template.BUILD",
127 # curl -L <url> | sha256sum
134 strip_prefix = "XNNPACK-8e3d3359f9bec608e09fac1f7054a2a14b1bd73c",
142 strip_prefix = "FXdiv-63058eff77e11aa15bf531df5dd34395ec3017c8",
149 strip_prefix = "pthreadpool-b8374f80e42010941bda6c85b0e3f1a1bd77a1e0",
155 strip_prefix = "cpuinfo-5e63739504f0f8e18e941bd63b2d6d42536c7d90",
162 strip_prefix = "cpuinfo-5e63739504f0f8e18e941bd63b2d6d42536c7d90",
172 strip_prefix = "cudnn-frontend-0.6.2",
[all …]
/external/tensorflow/tensorflow/tools/ci_build/release/
Drequirements_common.txt5 absl-py ~= 0.13.0
16 typing_extensions ~= 3.10.0.0
27 keras-nightly ~= 2.11.0.dev
28 tb-nightly ~= 2.9.0.a
29 tf-estimator-nightly ~= 2.10.0.dev
/external/python/setuptools/setuptools/_vendor/importlib_metadata/
D_compat.py11 from ..typing_extensions import Protocol # type: ignore
29 Give the backport primacy for discovering path-based distributions
30 by monkey-patching the stdlib O_O.

12