Overview

Request 1130725 accepted

- update to 4.1.5:
* Fixed ``Callable`` erroneously rejecting a callable that has
the requested amount of positional arguments but they have
defaults
* Fixed a regression introduced in v4.1.4 where the elements of
``Literal`` got quotes removed from them by the AST transformer
* Fixed ``AttributeError`` where the transformer removed
elements from a PEP 604 union
* Fixed ``AttributeError: 'Subscript' object has no attribute
'slice'`` when encountering an annotation with a subscript
containing an ignored type
* Fixed type checking not being skipped when the target is a
union (PEP 604 or ``typing.Union``) where one of the elements
is an ignored type (shadowed by an argument, variable
assignment or an ``if TYPE_CHECKING`` import)
* Dropped Python 3.7 support
* Fixed ``@typechecked`` optimization causing compilation of
instrumented code to fail when any block was left empty by the
AST transformer (eg ``if`` or ``try`` / ``except`` blocks)
* Fixed placement of injected typeguard imports with respect to
``__future__`` imports and module docstrings
* Fixed ``Any`` being removed from a subscript that still
contains other elements
* Fixed ``suppress_type_checks()`` causing annotated variable
assignments to always assign ``None``
* Added support for passing a tuple as ``expected_type`` to
``check_type()``, making it more of a drop-in replacement for
``isinstance()``
* Fixed regression where ``Literal`` inside a ``Union`` had
quotes stripped from its contents, thus typically causing

Request History
Dirk Mueller's avatar

dirkmueller created request

- update to 4.1.5:
* Fixed ``Callable`` erroneously rejecting a callable that has
the requested amount of positional arguments but they have
defaults
* Fixed a regression introduced in v4.1.4 where the elements of
``Literal`` got quotes removed from them by the AST transformer
* Fixed ``AttributeError`` where the transformer removed
elements from a PEP 604 union
* Fixed ``AttributeError: 'Subscript' object has no attribute
'slice'`` when encountering an annotation with a subscript
containing an ignored type
* Fixed type checking not being skipped when the target is a
union (PEP 604 or ``typing.Union``) where one of the elements
is an ignored type (shadowed by an argument, variable
assignment or an ``if TYPE_CHECKING`` import)
* Dropped Python 3.7 support
* Fixed ``@typechecked`` optimization causing compilation of
instrumented code to fail when any block was left empty by the
AST transformer (eg ``if`` or ``try`` / ``except`` blocks)
* Fixed placement of injected typeguard imports with respect to
``__future__`` imports and module docstrings
* Fixed ``Any`` being removed from a subscript that still
contains other elements
* Fixed ``suppress_type_checks()`` causing annotated variable
assignments to always assign ``None``
* Added support for passing a tuple as ``expected_type`` to
``check_type()``, making it more of a drop-in replacement for
``isinstance()``
* Fixed regression where ``Literal`` inside a ``Union`` had
quotes stripped from its contents, thus typically causing


Factory Auto's avatar

factory-auto added opensuse-review-team as a reviewer

Please review sources


Factory Auto's avatar

factory-auto accepted review

Check script succeeded


Ana Guerrero's avatar

anag+factory set openSUSE:Factory:Staging:H as a staging project

Being evaluated by staging project "openSUSE:Factory:Staging:H"


Ana Guerrero's avatar

anag+factory accepted review

Picked "openSUSE:Factory:Staging:H"


Saul Goodman's avatar

licensedigger accepted review

The legal review is accepted preliminary. The package may require actions later on.


Dominique Leuenberger's avatar

dimstar accepted review


Ana Guerrero's avatar

anag+factory accepted review

Staging Project openSUSE:Factory:Staging:H got accepted.


Ana Guerrero's avatar

anag+factory approved review

Staging Project openSUSE:Factory:Staging:H got accepted.


Ana Guerrero's avatar

anag+factory accepted request

Staging Project openSUSE:Factory:Staging:H got accepted.

openSUSE Build Service is sponsored by