Home
last modified time | relevance | path

Searched full:typing_extensions (Results 1 – 25 of 45) sorted by relevance

12

/external/python/typing/.github/workflows/
Dpackage.yml26 # accidentally pick up typing_extensions as installed by a dependency
32 cd typing_extensions
34 export path_to_file=$(find dist -type f -name "typing_extensions-*.whl")
39 - name: Attempt to import typing_extensions
40 run: python -c "import typing_extensions; print(typing_extensions.__all__)"
57 # accidentally pick up typing_extensions as installed by a dependency
63 cd typing_extensions
65 export path_to_file=$(find dist -type f -name "typing_extensions-*.tar.gz")
70 - name: Attempt to import typing_extensions
71 run: python -c "import typing_extensions; print(typing_extensions.__all__)"
Dci.yml33 - name: Test typing_extensions
37 # accidentally pick up typing_extensions as installed by a dependency
38 cd typing_extensions/src
64 run: flake8 --config=.flake8-tests typing_extensions/src/test_typing_extensions.py
/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
33 - Update the version number in `typing_extensions/pyproject.toml` and in
34 `typing_extensions/CHANGELOG`.
44 - `cd typing_extensions`
DREADME.md24 - The `typing_extensions` module lives in the
25 [typing\_extensions](./typing_extensions) directory.
D.flake815 typing_extensions/src/test_typing_extensions.py,
/external/python/typing/typing_extensions/
DREADME.rst12 The ``typing_extensions`` module serves two related purposes:
15 ``typing.TypeGuard`` is new in Python 3.10, but ``typing_extensions`` allows
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
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,
81 - ``get_origin`` (``typing_extensions`` provides this function only in Python 3.7+)
82 - ``get_args`` (``typing_extensions`` provides this function only in Python 3.7+)
115 ``typing_extensions`` provides a backport even on newer Python versions:
DCHANGELOG8 - 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`.
17 - Runtime support for PEP 675 and `typing_extensions.LiteralString`.
22 - Runtime support for PEP 681 and `typing_extensions.dataclass_transform`.
43 - Starting with version 4.0.0, typing_extensions uses Semantic Versioning.
50 - Runtime support for PEP 673 and `typing_extensions.Self`. Patch by
52 - Runtime support for PEP 655 and `typing_extensions.Required` and `NotRequired`.
DAndroid.bp19 name: "typing_extensions",
23 "src/typing_extensions.py",
25 pkg_path: "typing_extensions",
D__init__.py197 return 'typing_extensions.' + self._name
324 return 'typing_extensions.' + self._name
408 between collections, typing, and typing_extensions on older
632 @typing_extensions.runtime act as simple-minded runtime protocol that checks
988 @typing_extensions.runtime act as simple-minded runtime protocol that checks
1337 return (f"typing_extensions.Annotated[{typing._type_repr(self.__origin__)}, "
1632 return 'typing_extensions.' + self._name
1651 return 'typing_extensions.' + self._name
1670 return 'typing_extensions.TypeAlias'
1692 return 'typing_extensions.TypeAlias'
[all …]
Dpyproject.toml8 name = "typing_extensions"
13 urls.Home = "https://github.com/python/typing/blob/master/typing_extensions/README.rst"
/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')
136 self.assertEqual(repr(Never), 'typing_extensions.Never')
140 def some_str(arg: 'Never') -> 'typing_extensions.Never': ...
[all …]
Dtyping_extensions.py156 return 'typing_extensions.' + self._name
228 return 'typing_extensions.' + self._name
363 @typing_extensions.runtime act as simple-minded runtime protocol that checks
844 return (f"typing_extensions.Annotated[{typing._type_repr(self.__origin__)}, "
993 return 'typing_extensions.' + self._name
1012 return 'typing_extensions.' + self._name
1169 if def_mod != 'typing_extensions':
1268 return 'typing_extensions.' + self._name
1293 return 'typing_extensions.' + self._name
1346 return 'typing_extensions.' + self._name
[all …]
/external/tensorflow/third_party/
Dtyping_extensions.BUILD3 # https://github.com/python/typing/blob/master/typing_extensions/README.rst
8 name = "typing_extensions",
9 srcs = ["typing_extensions.py"],
/external/mbedtls/scripts/mbedtls_dev/
Dtyping_util.py21 # 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
/external/openthread/third_party/mbedtls/repo/scripts/mbedtls_dev/
Dtyping_util.py21 # 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
/external/tensorflow/third_party/systemlibs/
Dtyping_extensions.BUILD3 # https://github.com/python/typing/blob/master/typing_extensions/README.rst
8 name = "typing_extensions",
/external/python/setuptools/setuptools/_vendor/
Dtyping_extensions.py136 return 'typing_extensions.' + self._name
253 return 'typing_extensions.' + self._name
337 between collections, typing, and typing_extensions on older
562 @typing_extensions.runtime act as simple-minded runtime protocol that checks
918 @typing_extensions.runtime act as simple-minded runtime protocol that checks
1155 return (f"typing_extensions.Annotated[{typing._type_repr(self.__origin__)}, "
1490 return 'typing_extensions.' + self._name
1509 return 'typing_extensions.' + self._name
1528 return 'typing_extensions.TypeAlias'
1550 return 'typing_extensions.TypeAlias'
[all …]
Dvendored.txt10 typing_extensions==4.0.1
/external/tensorflow/tensorflow/python/framework/
Dcomposite_tensor_gradient.py29 from typing_extensions import Protocol
30 from typing_extensions import runtime_checkable
/external/python/setuptools/tools/
Dvendored.py75 text = file.read_text().replace('typing_extensions', '..typing_extensions')
/external/python/typing/docs/source/
Dunreachable.rst57 from typing_extensions import Never
85 and is also present in ``typing_extensions`` starting at version 4.1.
/external/python/mobly/mobly/
DAndroid.bp29 "typing_extensions",
/external/tensorflow/tensorflow/python/types/
Dtrace.py30 from typing_extensions import Protocol
31 from typing_extensions import runtime_checkable
/external/python/pyee/
DAndroid.bp37 "typing_extensions",
/external/tensorflow/tensorflow/
Dworkspace2.bzl391 build_file = "//third_party:typing_extensions.BUILD",
393 strip_prefix = "typing_extensions-4.2.0/src",
394 system_build_file = "//third_party/systemlibs:typing_extensions.BUILD",
395 … tf_mirror_urls("https://pypi.python.org/packages/source/t/typing_extensions/typing_extensions-4.2…
402 …tf_mirror_urls("https://raw.githubusercontent.com/python/typing/master/typing_extensions/LICENSE"),

12