Overview
Request 1087114 accepted
- 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
- Created by dirkmueller
- In state accepted
Request History
dirkmueller created request
- 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
factory-auto added opensuse-review-team as a reviewer
Please review sources
factory-auto accepted review
Check script succeeded
licensedigger accepted review
ok
dimstar_suse set openSUSE:Factory:Staging:D as a staging project
Being evaluated by staging project "openSUSE:Factory:Staging:D"
dimstar_suse accepted review
Picked "openSUSE:Factory:Staging:D"
dimstar_suse added factory-staging as a reviewer
Being evaluated by group "factory-staging"
dimstar_suse accepted review
Unstaged from project "openSUSE:Factory:Staging:D"
dimstar_suse set openSUSE:Factory:Staging:N as a staging project
Being evaluated by staging project "openSUSE:Factory:Staging:N"
dimstar_suse accepted review
Picked "openSUSE:Factory:Staging:N"
dimstar accepted review
dimstar_suse accepted review
Staging Project openSUSE:Factory:Staging:N got accepted.
dimstar_suse approved review
Staging Project openSUSE:Factory:Staging:N got accepted.
dimstar_suse accepted request
Staging Project openSUSE:Factory:Staging:N got accepted.