forked from pool/python-typeguard
c27855f935d7ff1ecfcd696a92515aa04e8f1146c94454ac6f5ac93c1b8901fe
- 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
OBS-URL: https://build.opensuse.org/request/show/1087114
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typeguard?expand=0&rev=4
Description
No description provided
Languages
RPM Spec
100%