Home
last modified time | relevance | path

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

12345678

/external/python/typing_extensions/
DCHANGELOG.md3 - Fix regression in v4.12.0 where specialization of certain
6 - Fix tests so they pass on 3.13.0b2
10 - Preliminary changes for compatibility with the draft implementation
12 - Fix regression in v4.12.0 where nested `Annotated` types would cause
21 - Fix incorrect behaviour of `typing_extensions.ParamSpec` on Python 3.8 and
23 `isinstance(typing_extensions.ParamSpec("P"), typing.TypeVar)` would have a
34 Waygood, who did most of the work adapting typing-extensions to the
39 - Improve the implementation of type parameter defaults (PEP 696)
40 - Backport the `typing.NoDefault` sentinel object from Python 3.13.
43 - TypeVars, ParamSpecs and TypeVarTuples now have a `has_default()`
[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.md5 [Documentation](https://typing-extensions.readthedocs.io/en/latest/#) –
6 [PyPI](https://pypi.org/project/typing-extensions/)
10 The `typing_extensions` module serves two related purposes:
12 - Enable use of new type system features on older Python versions. For example,
13 `typing.TypeGuard` is new in Python 3.10, but `typing_extensions` allows
15 - Enable experimentation with new type system PEPs before they are accepted and
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
24 major version will be incremented only for backwards-incompatible changes.
[all …]
Dpyproject.toml2 [build-system]
4 build-backend = "flit_core.buildapi"
8 name = "typing_extensions"
12 requires-python = ">=3.8"
30 "Development Status :: 5 - Production/Stable",
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"
50 Documentation = "https://typing-extensions.readthedocs.io/"
51 "Bug Tracker" = "https://github.com/python/typing_extensions/issues"
[all …]
DAndroid.bp7 // http://www.apache.org/licenses/LICENSE-2.0
22 "SPDX-license-identifier-MIT",
32 "src/typing_extensions.py",
38 name: "typing_extensions",
/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_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,
10 - Enable use of new type system features on older Python versions. For example,
11 :py:data:`typing.TypeGuard` is new in Python 3.10, but ``typing_extensions`` allows
13 - Enable experimentation with type system features proposed in new PEPs before they are accepted and
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,
[all …]
Dconf.py3 # For the full list of built-in configuration values, see the documentation:
4 # https://www.sphinx-doc.org/en/master/usage/configuration.html
14 # -- Project information -----------------------------------------------------
15 # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
17 project = 'typing_extensions'
22 # -- General configuration ---------------------------------------------------
23 # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
34 # -- Options for HTML output -------------------------------------------------
35 # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
41 """Adds a link target to name without `typing_extensions.` prefix."""
[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 …]
/external/python/typing_extensions/.github/workflows/
Dthird_party.yml2 # running the tests of various third-party libraries that use us.
4 # and helps flag when third-party libraries are making incorrect assumptions
7 name: Third-party tests
11 - cron: "30 2 * * *" # 02:30 UTC
14 - ".github/workflows/third_party.yml"
25 group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
26 cancel-in-progress: true
31 if: >-
37 github.repository == 'python/typing_extensions'
42 fail-fast: false
[all …]
Dci.yml5 - cron: "0 2 * * *" # 2am UTC
8 - main
20 group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
21 cancel-in-progress: true
27 if: >-
33 github.repository == 'python/typing_extensions'
39 fail-fast: false
44 # https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
45 python-version:
46 - "3.8"
[all …]
Dpublish.yml2 … https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions
17 group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18 cancel-in-progress: true
23 runs-on: ubuntu-latest
26 - uses: actions/checkout@v4
27 - name: Set up Python
28 uses: actions/setup-python@v5
30 python-version: "3.x"
31 - name: Check package metadata
33 - name: Install pypa/build
[all …]
/external/python/typing/typing_extensions/
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 …]
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 …]
DAndroid.bp7 // http://www.apache.org/licenses/LICENSE-2.0
23 "src/typing_extensions.py",
25 pkg_path: "typing_extensions",
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
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 …]
/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/python/typing_extensions/src/
Dtest_typing_extensions.py25 import typing_extensions
27 from typing_extensions import (
200 def __init__(self, x: int) -> None:
211 def meth(self, param: complex) -> None:
225 def __init__(self, x: int) -> None:
229 def __init__(self, x: int) -> None:
309 self.assertEqual(repr(NoReturn), 'typing_extensions.NoReturn')
312 def some(arg: NoReturn) -> NoReturn: ...
313 def some_str(arg: 'NoReturn') -> 'typing.NoReturn': ...
332 self.assertEqual(repr(Never), 'typing_extensions.Never')
[all …]
/external/openthread/third_party/mbedtls/repo/scripts/mbedtls_dev/
Dtyping_util.py5 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
10 # 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
21 #pylint: disable=too-few-public-methods
26 # pylint: disable=no-self-use,too-few-public-methods,unused-argument
27 def write(self, text: str) -> Any:
/external/mbedtls/scripts/mbedtls_dev/
Dtyping_util.py5 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
10 # 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
21 #pylint: disable=too-few-public-methods
26 # pylint: disable=no-self-use,too-few-public-methods,unused-argument
27 def write(self, text: str) -> Any:
/external/bazelbuild-rules_python/examples/bzlmod_build_file_generation/
Dgazelle_python.yaml1 # GENERATED FILE - DO NOT EDIT!
29 typing_extensions: typing_extensions
/external/python/typing_extensions/doc/_extensions/
Dgh_link.py6 "pr", autolink("https://github.com/python/typing_extensions/pull/{}", "PR #")
9 "pr-cpy", autolink("https://github.com/python/cpython/pull/{}", "CPython PR #")
13 autolink("https://github.com/python/typing_extensions/issues/{}", "issue #"),
16 "issue-cpy",

12345678