python-typeguard

Edit Package python-typeguard
No description set
Refresh
Refresh
Source Files
Filename Size Changed
python-typeguard.changes 0000010616 10.4 KB
python-typeguard.spec 0000001794 1.75 KB
typeguard-4.1.5.tar.gz 0000069228 67.6 KB
Latest Revision
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1130725 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 5)
- 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
Comments 0
openSUSE Build Service is sponsored by