Commit Graph

9 Commits

Author SHA256 Message Date
Dominique Leuenberger
c27855f935 Accepting request 1087114 from devel:languages:python
- 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
2023-05-19 09:55:17 +00:00
6436ad7278 - 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/package/show/devel:languages:python/python-typeguard?expand=0&rev=8
2023-05-14 16:39:43 +00:00
065aa08ad3 - 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,

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typeguard?expand=0&rev=7
2023-05-05 09:29:08 +00:00
Dominique Leuenberger
60692c033d Accepting request 1081995 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1081995
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typeguard?expand=0&rev=3
2023-04-22 20:02:02 +00:00
a34e987136 Accepting request 1081676 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081676
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typeguard?expand=0&rev=5
2023-04-21 14:55:09 +00:00
Dominique Leuenberger
42ef85bcd7 Accepting request 1009899 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1009899
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typeguard?expand=0&rev=2
2022-10-12 16:22:30 +00:00
5d944ce4bd Accepting request 1009850 from home:yarunachalam:branches:devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1009850
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typeguard?expand=0&rev=3
2022-10-11 18:17:04 +00:00
Dominique Leuenberger
8bf0d66e4f Accepting request 817607 from devel:languages:python
Initial package for 2.9.1

OBS-URL: https://build.opensuse.org/request/show/817607
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typeguard?expand=0&rev=1
2020-06-29 19:17:10 +00:00
Steve Kowalik
a66c032993 - Initial version
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typeguard?expand=0&rev=1
2020-06-29 06:34:24 +00:00