Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: python311-typeguard | Distribution: SUSE Linux Enterprise 15 |
Version: 4.0.0 | Vendor: SUSE LLC <https://www.suse.com/> |
Release: 150400.9.3.1 | Build date: Wed Oct 25 11:19:20 2023 |
Group: Unspecified | Build host: h01-ch3d |
Size: 288352 | Source RPM: python-typeguard-4.0.0-150400.9.3.1.src.rpm |
Packager: https://www.suse.com/ | |
Url: https://github.com/agronholm/typeguard | |
Summary: Library for runtime checking of Python types |
This library provides run-time type checking for functions defined with PEP 484 argument (and return) type annotations.
MIT
* Sun May 14 2023 [email protected] - update to 4.0.0: * Fixed ``@typechecked`` optimization causing compilation of instrumented code to fail when an ``if`` block was left empty by the AST transformer * Fixed the AST transformer trying to parse the second argument of ``typing.Annotated`` as a forward reference * Added ``InstrumentationWarning`` to the public API * Changed ``@typechecked`` to skip instrumentation in optimized mode, as in typeguard 2.x * Avoid type checks where the types in question are shadowed by local variables * Fixed instrumentation using ``typing.Optional`` without a subscript when the subscript value was erased due to being an ignored import * Fixed ``TypeError: isinstance() arg 2 must be a type or tuple of types`` when instrumented code tries to check a value against a naked (``str``, not ``ForwardRef``) * forward reference * Fixed instrumentation using the wrong "self" type in the ``__new__()`` method * Fixed imports guarded by ``if TYPE_CHECKING:`` when used with subscripts * (``SomeType[...]``) being replaced with ``Any[...]`` instead of just ``Any`` * Fixed instrumentation inadvertently mutating a function's annotations on Python 3.7 and 3.8 * Fixed ``Concatenate[...]`` in ``Callable`` parameters causing ``TypeError`` to be raised * Fixed type checks for ``*args`` or ``**kwargs`` not being suppressed when their types are unusable (guarded by ``if TYPE_CHECKING:`` or otherwise) * Fixed ``TypeError`` when checking against a generic ``NewType`` * Don't try to check types shadowed by argument names (e.g. * ``def foo(x: type, type: str): ...``) * Don't check against unions where one of the elements is * Fixed ``typing.Literal`` subscript contents being evaluated as forward references * Fixed resolution of forward references in type aliases * The ``.pyc`` files now use a version-based optimization suffix in the file names so as not to cause the interpreter to load potentially faulty/incompatible cached bytecode generated by older versions * Fixed typed variable positional and keyword arguments causing compilation errors on Python 3.7 and 3.8 * Fixed compilation error when a type annotation contains a type guarded by ``if TYPE_CHECKING:`` * **BACKWARD INCOMPATIBLE** ``check_type()`` no longer uses the global configuration. * It now uses the default configuration values, unless overridden with an explicit ``config`` argument. * **BACKWARD INCOMPATIBLE** Removed ``CallMemo`` from the API * **BACKWARD INCOMPATIBLE** Required checkers to use the configuration from ``memo.config``, rather than the global configuration * Added keyword arguments to ``@typechecked``, allowing users to override settings on a per-function basis * Added support for using ``suppress_type_checks()`` as a decorator * Added support for type checking against nonlocal classes defined within the same * parent function as the instrumented function * Changed instrumentation to statically copy the function annotations to avoid having to * look up the function object at run time * Improved support for avoiding type checks against imports declared in ``if TYPE_CHECKING:`` blocks * Fixed ``check_type`` not returning the passed value when checking against ``Any``, or when type checking is being suppressed * Fixed ``suppress_type_checks()`` not ending the suppression if the context block raises an exception * Fixed checking non-dictionary objects against a ``TypedDict`` annotation * Fri May 05 2023 [email protected] - update to 3.0.2: * Improved warnings by ensuring that they target user code and not Typeguard internal code * Fixed ``warn_on_error()`` not showing where the type violation actually occurred * Fixed local assignment to ``*args`` or ``**kwargs`` being type checked incorrectly * Fixed ``TypeError`` on ``check_type(..., None)`` * Fixed unpacking assignment not working with a starred variable (``x, *y = ...``) in * the target tuple * Fixed variable multi-assignment (``a = b = c = ...``) being type checked incorrectly * Improved the documentation * Fixed assignment unpacking (``a, b = ...``) being checked incorrectly * Fixed ``@typechecked`` attempting to instrument wrapper decorators such as * ``@contextmanager`` when applied to a class * Fixed ``py.typed`` missing from the wheel when not building from a git checkout * Dropped the ``argname``, ``memo``, ``globals`` and ``locals`` arguments from ``check_type()`` * Removed the ``check_argument_types()`` and ``check_return_type()`` functions (use ``@typechecked`` instead) * Moved ``install_import_hook`` to be directly importable from the ``typeguard`` module * Changed the checking of collections (list, set, dict, sequence, mapping) to only check the first item by default. To get the old behavior, set ``typeguard.config.collection_check_strategy`` to ``CollectionCheckStrategy.ALL_ITEMS`` * Type checking failures now raise typeguard.TypeCheckError instead of TypeError * Dropped Python 3.5 and 3.6 support * Dropped the deprecated profiler hook (``TypeChecker``) * Added a configuration system * Added support for custom type checking functions * Added support for PEP 604 union types (``X | Y``) on all Python versions * Added support for generic built-in collection types (``list[int]`` et al) on all * Python versions * Added support for checking arbitrary Mapping types * Added support for the Self type * Added support for ``typing.Never`` (and ``typing_extensions.Never``) * Added support for ``Never`` and ``NoReturn`` in argument annotations * Added support for ``LiteralString`` * Added support for ``TypeGuard`` * Added support for the subclassable ``Any`` on Python 3.11 and ``typing_extensions`` * Added the possibility to have the import hook instrument all packages * Added the ``suppress_type_checks()`` context manager function for temporarily disabling type checks * Changed ``check_type()`` to return the passed value, so it can be used (to an extent) in place of ``typing.cast()``, but with run-time type checking * Replaced custom implementation of ``is_typeddict()`` with the implementation from ``typing_extensions`` v4.1.0 * Emit ``InstrumentationWarning`` instead of raising ``RuntimeError`` from the pytest plugin if modules in the target package have already been imported * Fixed ``TypeError`` when checking against ``TypedDict`` when the value has mixed types among the extra keys (PR by biolds) * Fixed incompatibility with ``typing_extensions`` v4.1+ on Python 3.10 (PR by David C.) * Fixed checking of ``Tuple[()]`` on Python 3.11 and ``tuple[()]`` on Python 3.9+ * Fixed integers 0 and 1 passing for ``Literal[False]`` and ``Literal[True]``, respectively * Fixed type checking of annotated variable positional and keyword arguments (``*args`` and ``**kwargs``) * Fixed checks against ``unittest.Mock`` and derivatives being done in the wrong place * Fri Apr 21 2023 [email protected] - add sle15_python_module_pythons (jsc#PED-68) * Thu Apr 13 2023 [email protected] - Make calling of %{sle15modernpython} optional. * Tue Oct 11 2022 [email protected] - Update to version 2.13.3 * Fixed TypeError when using typeguard within exec() (where __module__ is None) (PR by Andy Jones) * Fixed TypedDict causing TypeError: TypedDict does not support instance and class checks on Python 3.8 with standard library (not typing_extensions) typed dicts * Mon Jun 29 2020 [email protected] - Initial version
/usr/lib/python3.11/site-packages/typeguard /usr/lib/python3.11/site-packages/typeguard-0.0.0.dist-info /usr/lib/python3.11/site-packages/typeguard-0.0.0.dist-info/INSTALLER /usr/lib/python3.11/site-packages/typeguard-0.0.0.dist-info/LICENSE /usr/lib/python3.11/site-packages/typeguard-0.0.0.dist-info/METADATA /usr/lib/python3.11/site-packages/typeguard-0.0.0.dist-info/RECORD /usr/lib/python3.11/site-packages/typeguard-0.0.0.dist-info/REQUESTED /usr/lib/python3.11/site-packages/typeguard-0.0.0.dist-info/WHEEL /usr/lib/python3.11/site-packages/typeguard-0.0.0.dist-info/entry_points.txt /usr/lib/python3.11/site-packages/typeguard-0.0.0.dist-info/top_level.txt /usr/lib/python3.11/site-packages/typeguard/__init__.py /usr/lib/python3.11/site-packages/typeguard/__pycache__ /usr/lib/python3.11/site-packages/typeguard/__pycache__/__init__.cpython-311.opt-1.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/__init__.cpython-311.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_checkers.cpython-311.opt-1.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_checkers.cpython-311.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_config.cpython-311.opt-1.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_config.cpython-311.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_decorators.cpython-311.opt-1.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_decorators.cpython-311.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_exceptions.cpython-311.opt-1.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_exceptions.cpython-311.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_functions.cpython-311.opt-1.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_functions.cpython-311.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_importhook.cpython-311.opt-1.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_importhook.cpython-311.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_memo.cpython-311.opt-1.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_memo.cpython-311.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_pytest_plugin.cpython-311.opt-1.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_pytest_plugin.cpython-311.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_suppression.cpython-311.opt-1.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_suppression.cpython-311.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_transformer.cpython-311.opt-1.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_transformer.cpython-311.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_union_transformer.cpython-311.opt-1.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_union_transformer.cpython-311.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_utils.cpython-311.opt-1.pyc /usr/lib/python3.11/site-packages/typeguard/__pycache__/_utils.cpython-311.pyc /usr/lib/python3.11/site-packages/typeguard/_checkers.py /usr/lib/python3.11/site-packages/typeguard/_config.py /usr/lib/python3.11/site-packages/typeguard/_decorators.py /usr/lib/python3.11/site-packages/typeguard/_exceptions.py /usr/lib/python3.11/site-packages/typeguard/_functions.py /usr/lib/python3.11/site-packages/typeguard/_importhook.py /usr/lib/python3.11/site-packages/typeguard/_memo.py /usr/lib/python3.11/site-packages/typeguard/_pytest_plugin.py /usr/lib/python3.11/site-packages/typeguard/_suppression.py /usr/lib/python3.11/site-packages/typeguard/_transformer.py /usr/lib/python3.11/site-packages/typeguard/_union_transformer.py /usr/lib/python3.11/site-packages/typeguard/_utils.py /usr/lib/python3.11/site-packages/typeguard/py.typed /usr/share/licenses/python311-typeguard /usr/share/licenses/python311-typeguard/LICENSE
Generated by rpm2html 1.8.1
Fabrice Bellet, Tue Jul 9 19:58:50 2024