------------------------------------------------------------------- Fri May 5 09:24:37 UTC 2023 - Dirk Müller - 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 12:38:04 UTC 2023 - Dirk Müller - add sle15_python_module_pythons (jsc#PED-68) ------------------------------------------------------------------- Thu Apr 13 22:45:38 UTC 2023 - Matej Cepl - Make calling of %{sle15modernpython} optional. ------------------------------------------------------------------- Tue Oct 11 16:36:44 UTC 2022 - Yogalakshmi Arunachalam - 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 ------------------------------------------------------------------- Tue Jun 29 06:29:13 UTC 2020 - Steve Kowalik - Initial version