Next | Query returned 13 messages, browsing 1 to 10 | Previous

History of commit frequency

CVS Commit History:


   2024-03-25 07:28:27 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-typeguard: updated to 4.2.1

4.2.1 (2023-03-24)

- Fixed missing ``typing_extensions`` dependency for Python 3.12
- Fixed deprecation warning in the test suite on Python 3.13
   2024-03-24 08:28:27 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-typeguard: updated to 4.2.0

4.2.0

Added support for specifying options for the pytest plugin via pytest config files
Avoid creating reference cycles when type checking unions (PR by Shantanu)
Fixed Optional[...] being removed from the AST if it was located within a subscript
Fixed TypedDict from typing_extensions not being recognized as one
Fixed typing types (dict[str, int], List[str], etc.) not passing checks against \ 
type or Type
Fixed detection of optional fields (NotRequired[...]) in TypedDict when using \ 
forward references
Fixed mapping checks against Django's MultiValueDict
   2023-11-19 17:02:44 by Thomas Klausner | Files touched by this commit (1)
Log message:
py-typeguard: fix DEPENDS and test target
   2023-10-28 21:57:26 by Thomas Klausner | Files touched by this commit (516) | Package updated
Log message:
python/wheel.mk: simplify a lot, and switch to 'installer' for installation

This follows the recommended bootstrap method (flit_core, build, installer).

However, installer installs different files than pip, so update PLISTs
for all packages using wheel.mk and bump their PKGREVISIONs.
   2023-09-15 16:52:14 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-typeguard: updated to 4.1.5

4.1.5 (2023-09-11)

- 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
   2023-09-11 11:30:20 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-typeguard: updated to 4.1.4

4.1.4

- 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 (imported
  within an ``if TYPE_CHECKING:`` block)
- 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)
- Fixed type checking of class instances created in ``__new__()`` in cases such \ 
as enums
  where this method is already invoked before the class has finished initializing
   2023-08-27 04:50:34 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-typeguard: updated to 4.1.3

4.1.3

- 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
   2023-08-24 22:31:01 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
py-typeguard: update to 4.1.2.

4.1.2 (2023-08-18)

    Fixed Any being removed from a subscript that still contains other elements (#373

4.1.1 (2023-08-16)

    Fixed suppress_type_checks() causing annotated variable assignments to \ 
always assign None (#380)
   2023-07-30 09:54:12 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-typeguard: updated to 4.1.0

4.1.0 (2023-07-30)

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 NameError to be raised when run

4.0.1 (2023-07-27)

Fixed handling of typing_extensions.Literal on Python 3.8 and 3.9 when \ 
typing_extensions>=4.6.0 is installed
Fixed NameError when generated type checking code references an imported name \ 
from a method
Fixed docstrings disappearing from instrumented functions
Fixed @typechecked failing to instrument functions when there are more than one \ 
function within the same scope
Fixed frozenset not being checked
   2023-05-16 12:37:27 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-typeguard: updated to 4.0.0

**4.0.0** (2023-05-12)

- No changes

**4.0.0rc6** (2023-05-07)

- 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

**4.0.0rc5** (2023-05-01)

- 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

**4.0.0rc4** (2023-04-15)

- 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 (guarded by ``if TYPE_CHECKING:`` or otherwise)
- Fixed ``TypeError`` when checking against a generic ``NewType``
- Don't try to check types shadowed by argument names (e.g.
  ``def foo(x: type, type: str): ...``)
- Don't check against unions where one of the elements is ``Any``

**4.0.0rc3** (2023-04-10)

- Fixed ``typing.Literal`` subscript contents being evaluated as forward references
- Fixed resolution of forward references in type aliases

**4.0.0rc2** (2023-04-08)

- The ``.pyc`` files now use a version-based optimization suffix in the file \ 
names so as
  not to cause the interpreter to load potentially faulty/incompatible cached \ 
bytecode
  generated by older versions
- Fixed typed variable positional and keyword arguments causing compilation errors on
  Python 3.7 and 3.8
- Fixed compilation error when a type annotation contains a type guarded by
  ``if TYPE_CHECKING:``

**4.0.0rc1** (2023-04-02)

- **BACKWARD INCOMPATIBLE** ``check_type()`` no longer uses the global configuration.
  It now uses the default configuration values, unless overridden with an explicit
  ``config`` argument.
- **BACKWARD INCOMPATIBLE** Removed ``CallMemo`` from the API
- **BACKWARD INCOMPATIBLE** Required checkers to use the configuration from
  ``memo.config``, rather than the global configuration
- Added keyword arguments to ``@typechecked``, allowing users to override \ 
settings on a
  per-function basis
- Added support for using ``suppress_type_checks()`` as a decorator
- Added support for type checking against nonlocal classes defined within the same
  parent function as the instrumented function
- Changed instrumentation to statically copy the function annotations to avoid \ 
having to
  look up the function object at run time
- Improved support for avoiding type checks against imports declared in
  ``if TYPE_CHECKING:`` blocks
- Fixed ``check_type`` not returning the passed value when checking against \ 
``Any``, or
  when type checking is being suppressed
- Fixed ``suppress_type_checks()`` not ending the suppression if the context block
  raises an exception
- Fixed checking non-dictionary objects against a ``TypedDict`` annotation

Next | Query returned 13 messages, browsing 1 to 10 | Previous