Home
last modified time | relevance | path

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

123456789

/external/python/typing_extensions/
DCHANGELOG.md21 - Fix incorrect behaviour of `typing_extensions.ParamSpec` on Python 3.8 and
23 `isinstance(typing_extensions.ParamSpec("P"), typing.TypeVar)` would have a
64 `typing_extensions.Protocol`. Similarly, 3.13.0b1 adds the new
66 - Fix `AttributeError` when using `typing_extensions.runtime_checkable`
72 - The second and third parameters of `typing_extensions.Generator`,
73 and the second parameter of `typing_extensions.AsyncGenerator`,
76 - `typing_extensions.ContextManager` and
77 `typing_extensions.AsyncContextManager` now have an optional second
104 and `typing_extensions` on Python 3.10. Patch by Jelle Zijlstra.
118 - Add support for PEP 742, adding `typing_extensions.TypeIs`. Patch
[all …]
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
23 Starting with version 4.0.0, `typing_extensions` uses
29 A stub file for `typing_extensions` is maintained
30 [in typeshed](https://github.com/python/typeshed/blob/main/stdlib/typing_extensions.pyi).
31 Because of the special status that `typing_extensions` holds in the typing ecosystem,
37 Testing `typing_extensions` can be tricky because many development tools depend on
38 `typing_extensions`, so you may end up testing some installed version of the library,
[all …]
DREADME.md10 The `typing_extensions` module serves two related purposes:
13 `typing.TypeGuard` is new in Python 3.10, but `typing_extensions` allows
18 `typing_extensions` is treated specially by static type checkers such as
19 mypy and pyright. Objects defined in `typing_extensions` are treated the same
22 `typing_extensions` uses
26 on `typing_extensions` like this: `typing_extensions >=x.y, <(x+1)`,
36 See [CONTRIBUTING.md](https://github.com/python/typing_extensions/blob/main/CONTRIBUTING.md)
37 for how to contribute to `typing_extensions`.
Dpyproject.toml8 name = "typing_extensions"
47 Home = "https://github.com/python/typing_extensions"
48 Repository = "https://github.com/python/typing_extensions"
49 Changes = "https://github.com/python/typing_extensions/blob/main/CHANGELOG.md"
51 "Bug Tracker" = "https://github.com/python/typing_extensions/issues"
89 "!src/typing_extensions.py" = [
101 known-first-party = ["typing_extensions", "_typed_dict_test_helper"]
DMETADATA1 name: "typing_extensions"
6 homepage: "https://github.com/python/typing_extensions"
9 value: "https://github.com/python/typing_extensions"
DAndroid.bp32 "src/typing_extensions.py",
38 name: "typing_extensions",
/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_extensions/doc/
Dindex.rst1 .. module:: typing_extensions
3 Welcome to typing_extensions's documentation!
6 ``typing_extensions`` complements the standard-library :py:mod:`typing` module,
11 :py:data:`typing.TypeGuard` is new in Python 3.10, but ``typing_extensions`` allows
16 New features may be added to ``typing_extensions`` as soon as they are specified
20 affected ``typing_extensions`` has been rejected so far, so we haven't yet
24 ``typing_extensions`` once they are merged into CPython's main branch.
26 ``typing_extensions`` also re-exports all names from the :py:mod:`typing` module,
28 import names from ``typing_extensions`` without having to remember exactly when
37 Starting with version 4.0.0, ``typing_extensions`` uses
[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
33 - Update the version number in `typing_extensions/pyproject.toml` and in
34 `typing_extensions/CHANGELOG`.
44 - `cd typing_extensions`
/external/python/typing_extensions/.github/workflows/
Dthird_party.yml37 github.repository == 'python/typing_extensions'
46 # and it's nothing to do with typing_extensions
59 - name: Checkout typing_extensions
68 - name: Add local version of typing_extensions as a dependency
85 github.repository == 'python/typing_extensions'
101 - name: Checkout typing_extensions
115 - name: Install typing_extensions latest
132 github.repository == 'python/typing_extensions'
148 - name: Checkout typing_extensions
163 - name: Install typing_extensions latest
[all …]
Dci.yml33 github.repository == 'python/typing_extensions'
71 - name: Test typing_extensions
74 # accidentally pick up typing_extensions as installed by a dependency
79 # Test suite fails on PyPy even without typing_extensions
83 # Run the typing test suite from CPython with typing_extensions installed,
85 python -c 'import typing_extensions; import test.__main__' test_typing -v
116 github.repository == 'python/typing_extensions'
132 repo: "typing_extensions",
134 … body: "Runs listed here: https://github.com/python/typing_extensions/actions/workflows/ci.yml",
Dpublish.yml36 # accidentally pick up typing_extensions as installed by a dependency
66 export path_to_file=$(find dist -type f -name "typing_extensions-*.whl")
70 - name: Run typing_extensions tests against installed package
71 run: rm src/typing_extensions.py && python src/test_typing_extensions.py
92 export path_to_file=$(find dist -type f -name "typing_extensions-*.tar.gz")
117 export path_to_file=$(find dist -type f -name "typing_extensions-*.tar.gz")
121 - name: Run typing_extensions tests against installed package
122 run: rm src/typing_extensions.py && python src/test_typing_extensions.py
/external/python/typing/typing_extensions/
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`.
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:
DAndroid.bp23 "src/typing_extensions.py",
25 pkg_path: "typing_extensions",
/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/python/typing_extensions/src/
Dtest_typing_extensions.py25 import typing_extensions
27 from typing_extensions import (
309 self.assertEqual(repr(NoReturn), 'typing_extensions.NoReturn')
332 self.assertEqual(repr(Never), 'typing_extensions.Never')
336 def some_str(arg: 'Never') -> 'typing_extensions.Never': ...
359 typing_extensions._ASSERT_NEVER_REPR_MAX_LENGTH * 2,
701 mod_name = 'typing_extensions'
739 mod_name = 'typing_extensions'
825 mod_name = 'typing_extensions'
870 mod_name = 'typing_extensions'
[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/openthread/third_party/mbedtls/repo/scripts/mbedtls_dev/
Dtyping_util.py10 # The typing_extensions module is necessary for type annotations that are
15 # with, typing_extensions), and if not define substitutes that lack the
18 from typing_extensions import Protocol #pylint: disable=import-error
/external/mbedtls/scripts/mbedtls_dev/
Dtyping_util.py10 # The typing_extensions module is necessary for type annotations that are
15 # with, typing_extensions), and if not define substitutes that lack the
18 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/bazelbuild-rules_python/examples/bzlmod_build_file_generation/
Dgazelle_python.yaml29 typing_extensions: typing_extensions
/external/python/typing_extensions/doc/_extensions/
Dgh_link.py6 "pr", autolink("https://github.com/python/typing_extensions/pull/{}", "PR #")
13 autolink("https://github.com/python/typing_extensions/issues/{}", "issue #"),

123456789