head	1.24;
access;
symbols
	pkgsrc-2026Q1:1.24.0.2
	pkgsrc-2026Q1-base:1.24
	pkgsrc-2025Q4:1.22.0.2
	pkgsrc-2025Q4-base:1.22
	pkgsrc-2025Q3:1.21.0.2
	pkgsrc-2025Q3-base:1.21
	pkgsrc-2025Q2:1.20.0.2
	pkgsrc-2025Q2-base:1.20
	pkgsrc-2025Q1:1.18.0.2
	pkgsrc-2025Q1-base:1.18
	pkgsrc-2024Q4:1.17.0.2
	pkgsrc-2024Q4-base:1.17
	pkgsrc-2024Q3:1.14.0.4
	pkgsrc-2024Q3-base:1.14
	pkgsrc-2024Q2:1.14.0.2
	pkgsrc-2024Q2-base:1.14
	pkgsrc-2024Q1:1.13.0.2
	pkgsrc-2024Q1-base:1.13
	pkgsrc-2023Q4:1.11.0.2
	pkgsrc-2023Q4-base:1.11
	pkgsrc-2023Q3:1.9.0.2
	pkgsrc-2023Q3-base:1.9
	pkgsrc-2023Q2:1.4.0.2
	pkgsrc-2023Q2-base:1.4
	pkgsrc-2023Q1:1.2.0.10
	pkgsrc-2023Q1-base:1.2
	pkgsrc-2022Q4:1.2.0.8
	pkgsrc-2022Q4-base:1.2
	pkgsrc-2022Q3:1.2.0.6
	pkgsrc-2022Q3-base:1.2
	pkgsrc-2022Q2:1.2.0.4
	pkgsrc-2022Q2-base:1.2
	pkgsrc-2022Q1:1.2.0.2
	pkgsrc-2022Q1-base:1.2;
locks; strict;
comment	@# @;


1.24
date	2026.02.23.08.39.55;	author adam;	state Exp;
branches;
next	1.23;
commitid	biUqnjdlPNKUHtvG;

1.23
date	2026.02.16.09.06.13;	author adam;	state Exp;
branches;
next	1.22;
commitid	Hq4wFoHKohfP4AuG;

1.22
date	2025.10.09.08.07.29;	author wiz;	state Exp;
branches;
next	1.21;
commitid	RA1puwGMZhROVRdG;

1.21
date	2025.06.30.20.24.29;	author adam;	state Exp;
branches;
next	1.20;
commitid	6bieRHqzjb5TfX0G;

1.20
date	2025.06.05.17.37.15;	author adam;	state Exp;
branches;
next	1.19;
commitid	EkuQnn8TIJrm8JXF;

1.19
date	2025.04.12.21.37.06;	author adam;	state Exp;
branches;
next	1.18;
commitid	IJnVw0oumzhkcOQF;

1.18
date	2025.02.18.10.06.46;	author adam;	state Exp;
branches;
next	1.17;
commitid	Im3xPeYDyua15WJF;

1.17
date	2024.11.11.07.28.28;	author wiz;	state Exp;
branches;
next	1.16;
commitid	1fBDq3LwS98NncxF;

1.16
date	2024.11.03.19.07.15;	author adam;	state Exp;
branches;
next	1.15;
commitid	BpEC58ivbBXDvewF;

1.15
date	2024.10.30.08.52.35;	author adam;	state Exp;
branches;
next	1.14;
commitid	CfARAjqyaA5PeFvF;

1.14
date	2024.05.29.11.38.41;	author adam;	state Exp;
branches;
next	1.13;
commitid	mbbttmMOFlxH6TbF;

1.13
date	2024.03.25.06.28.27;	author adam;	state Exp;
branches;
next	1.12;
commitid	JnxkgAqxpEWNtv3F;

1.12
date	2024.03.24.07.28.27;	author adam;	state Exp;
branches;
next	1.11;
commitid	5uevtPBFRXsoQn3F;

1.11
date	2023.11.19.16.02.44;	author wiz;	state Exp;
branches;
next	1.10;
commitid	B94WlYrSzlFYJeNE;

1.10
date	2023.10.28.19.57.08;	author wiz;	state Exp;
branches;
next	1.9;
commitid	jP8MYROLWZ3yJqKE;

1.9
date	2023.09.15.14.52.13;	author adam;	state Exp;
branches;
next	1.8;
commitid	k3bwjaM4rzJgrSEE;

1.8
date	2023.09.11.09.30.20;	author adam;	state Exp;
branches;
next	1.7;
commitid	dTdCj8hLZHfMMkEE;

1.7
date	2023.08.27.02.50.34;	author adam;	state Exp;
branches;
next	1.6;
commitid	Qisc4GRFYsmy3nCE;

1.6
date	2023.08.24.20.31.00;	author wiz;	state Exp;
branches;
next	1.5;
commitid	IIiwM8MMirPo15CE;

1.5
date	2023.07.30.07.54.12;	author adam;	state Exp;
branches;
next	1.4;
commitid	8CCzml8sHSCoDNyE;

1.4
date	2023.05.16.10.37.27;	author adam;	state Exp;
branches;
next	1.3;
commitid	EuiRjfs1aLNWWapE;

1.3
date	2023.05.01.09.47.32;	author wiz;	state Exp;
branches;
next	1.2;
commitid	HaCdXrtUrKmL9fnE;

1.2
date	2022.01.27.08.17.13;	author wiz;	state Exp;
branches;
next	1.1;
commitid	DzwdPa35ffSApfqD;

1.1
date	2022.01.23.19.45.31;	author adam;	state Exp;
branches;
next	;
commitid	YCPUCpNBthUAlNpD;


desc
@@


1.24
log
@py-typeguard: updated to 4.5.1

**4.5.1** (2026-02-19)

- Fixed iterable unpacking incorrectly calculating the cut-off offset of the item list
  when assigning remaining values to the star variable
@
text
@# $NetBSD: Makefile,v 1.23 2026/02/16 09:06:13 adam Exp $

DISTNAME=	typeguard-4.5.1
PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
CATEGORIES=	devel python
MASTER_SITES=	${MASTER_SITE_PYPI:=t/typeguard/}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://github.com/agronholm/typeguard
COMMENT=	Python run-time type checking library
LICENSE=	mit

TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools_scm>=6.4:../../devel/py-setuptools_scm
DEPENDS+=	${PYPKGPREFIX}-typing-extensions>=4.14.0:../../devel/py-typing-extensions
TEST_DEPENDS+=	${PYPKGPREFIX}-mypy>=1.2.0:../../lang/py-mypy

USE_LANGUAGES=	# none

pre-test:
	${LN} -sf ${PREFIX}/bin/mypy-${PYVERSSUFFIX} ${BUILDLINK_DIR}/bin/mypy

.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
@


1.23
log
@py-typeguard: updated to 4.5.0

4.5.0 (2026-02-15)

- Restored the ``check_argument_types()`` and ``check_return_type()`` functions that
  were dropped in v3.0.0, for users who want more fine-grained control over run-time
  type checking
- Added support for ``extra_items`` in ``TypedDict``, allowing users to specify
  the types for the values of "leftover" keys in a typed dict (keys that weren't
  explicitly defined in the ``TypedDict`` subclass)
- Fixed ``NameError`` when evaluating forward references on Python 3.14
- Fixed protocol check incorrectly rejecting inherited classmethods and staticmethods
- Fixed missing ``TypeCheckError`` when checking ``TypedDict`` with ``Required[...]``
  annotations
- Fixed type aliases (e.g. ``type Foo = list[int]``) not being resolved during type
  checking
- Fixed type-checked assignments to a single tuple target (e.g. ``x, = ("foo",)``)
  falsely raising ``TypeCheckedError``
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2025/10/09 08:07:29 wiz Exp $
d3 1
a3 1
DISTNAME=	typeguard-4.5.0
@


1.22
log
@*: remove more references to (removed) Python 3.9
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2025/06/30 20:24:29 adam Exp $
d3 1
a3 1
DISTNAME=	typeguard-4.4.4
@


1.21
log
@py-typeguard: updated to 4.4.4

4.4.4 (2026-06-18)

- Fixed ``IndexError`` when using ``@@typechecked`` on more than one function with the
  same name under certain circumstances
- Fixed ``TypeError`` during type checking when the value to check is a parametrized
  generic class
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2025/06/05 17:37:15 adam Exp $
a22 5
.include "../../lang/python/pyversion.mk"
.if ${PYTHON_VERSION} < 310
DEPENDS+=	${PYPKGPREFIX}-importlib-metadata>=3.6:../../devel/py-importlib-metadata
.endif

@


1.20
log
@py-typeguard: updated to 4.4.3

4.4.3

- Fixed ``@@typechecked`` unable to find the target function or method if it or the
  containing class had PEP 695 type parameters on them
- Fixed handling of union types on Python 3.14
- Fixed ``__type_params__`` getting lost when a function is instrumented
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2025/04/12 21:37:06 adam Exp $
d3 1
a3 1
DISTNAME=	typeguard-4.4.3
@


1.19
log
@Fix PLIST after py-setuptools update; bump depends and revision
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2025/02/18 10:06:46 adam Exp $
d3 1
a3 1
DISTNAME=	typeguard-4.4.2
a4 1
PKGREVISION=	1
d15 1
a15 1
DEPENDS+=	${PYPKGPREFIX}-typing-extensions>=4.10.0:../../devel/py-typing-extensions
@


1.18
log
@py-typeguard: updated to 4.4.2

4.4.2

- Fixed ``TypeCheckError`` in unpacking assignment involving properties of a parameter
  of the function
- Fixed display of module name for forward references
- Fixed ``TypeError`` when using an assignment expression
- Fixed ``ValueError: no signature found for builtin`` when checking against a protocol
  and a matching attribute in the subject is a built-in function
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2024/11/11 07:28:28 wiz Exp $
d5 1
d14 1
a14 1
TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools>=64:../../devel/py-setuptools
@


1.17
log
@py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2024/11/03 19:07:15 adam Exp $
d3 1
a3 1
DISTNAME=	typeguard-4.4.1
@


1.16
log
@py-typeguard: updated to 4.4.1

4.4.1 (2024-11-03)

- Dropped Python 3.8 support
- Changed the signature of ``typeguard_ignore()`` to be compatible with
  ``typing.no_type_check()``
- Avoid creating reference cycles when type checking uniontypes and classes
- Fixed checking of variable assignments involving tuple unpacking
- Fixed ``TypeError`` when checking a class against ``type[Self]``
- Fixed checking of protocols on the class level (against ``type[SomeProtocol]``)
- Fixed ``Self`` checks in instance/class methods that have positional-only arguments
- Fixed explicit checks of PEP 604 unions against ``types.UnionType``
- Fixed checks against annotations wrapped in ``NotRequired`` not being run unless the
  ``NotRequired`` is a forward reference
- Fixed the ``pytest_ignore_collect`` hook in the pytest plugin blocking default pytest
  collection ignoring behavior by returning ``None`` instead of ``False``
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2024/10/30 08:52:35 adam Exp $
a14 1
TOOL_DEPENDS+=	${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
@


1.15
log
@py-typeguard: updated to 4.4.0

4.4.0 (2024-10-27)

- Added proper checking for method signatures in protocol checks
- Fixed basic support for intersection protocols
- Fixed protocol checks running against the class of an instance and not the instance
  itself (this produced wrong results for non-method member checks)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2024/05/29 11:38:41 adam Exp $
d3 1
a3 1
DISTNAME=	typeguard-4.4.0
@


1.14
log
@py-typeguard: updated to 4.3.0

4.3.0 (2024-05-27)

- Added support for checking against static protocols
- Fixed some compatibility problems when running on Python 3.13
- Fixed test suite incompatibility with pytest 8.2
- Fixed pytest plugin crashing on pytest version older than v7.0.0 (even if it's just
  present)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2024/03/25 06:28:27 adam Exp $
d3 1
a3 1
DISTNAME=	typeguard-4.3.0
a20 2
PYTHON_VERSIONS_INCOMPATIBLE=	27

a24 1

@


1.13
log
@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
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2024/03/24 07:28:27 adam Exp $
d3 1
a3 1
DISTNAME=	typeguard-4.2.1
d16 1
a30 3
.if ${PYTHON_VERSION} < 313
DEPENDS+=	${PYPKGPREFIX}-typing-extensions>=4.10.0:../../devel/py-typing-extensions
.endif
@


1.12
log
@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
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2023/11/19 16:02:44 wiz Exp $
d3 1
a3 1
DISTNAME=	typeguard-4.2.0
d30 2
a31 2
.if ${PYTHON_VERSION} < 312
DEPENDS+=	${PYPKGPREFIX}-typing-extensions>=4.7.0:../../devel/py-typing-extensions
@


1.11
log
@py-typeguard: fix DEPENDS and test target
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2023/10/28 19:57:08 wiz Exp $
d3 1
a3 1
DISTNAME=	typeguard-4.1.5
a4 1
PKGREVISION=	2
@


1.10
log
@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.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2023/09/15 14:52:13 adam Exp $
d5 1
a5 1
PKGREVISION=	1
a17 1
TEST_DEPENDS+=	${PYPKGPREFIX}-test>=7:../../devel/py-test
d23 2
a24 3
TEST_ENV+=	PYTHONPATH=${WRKSRC}/build/lib
do-test:
	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
d29 1
a29 1
TEST_DEPENDS+=	${PYPKGPREFIX}-importlib-metadata>=3.6:../../devel/py-importlib-metadata
d32 1
a32 1
TEST_DEPENDS+=	${PYPKGPREFIX}-typing-extensions>=4.7.0:../../devel/py-typing-extensions
@


1.9
log
@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
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2023/09/11 09:30:20 adam Exp $
d5 1
@


1.8
log
@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
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2023/08/27 02:50:34 adam Exp $
d3 1
a3 1
DISTNAME=	typeguard-4.1.4
@


1.7
log
@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
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2023/08/24 20:31:00 wiz Exp $
d3 1
a3 1
DISTNAME=	typeguard-4.1.3
@


1.6
log
@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)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2023/07/30 07:54:12 adam Exp $
d3 1
a3 1
DISTNAME=	typeguard-4.1.2
d32 1
a32 1
.if ${PYTHON_VERSION} < 311
@


1.5
log
@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
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2023/05/16 10:37:27 adam Exp $
d3 1
a3 1
DISTNAME=	typeguard-4.1.0
@


1.4
log
@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
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2023/05/01 09:47:32 wiz Exp $
d3 1
a3 1
DISTNAME=	typeguard-4.0.0
d33 1
a33 1
TEST_DEPENDS+=	${PYPKGPREFIX}-typing-extensions>=4.4.0:../../devel/py-typing-extensions
@


1.3
log
@py-typeguard: update to 3.0.2.

**3.0.2** (2023-03-22)

- 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

**3.0.1** (2023-03-16)

- 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

**3.0.0** (2023-03-15)

- **BACKWARD INCOMPATIBLE** Dropped the ``argname``, ``memo``, ``globals`` and
  ``locals`` arguments from ``check_type()``
- **BACKWARD INCOMPATIBLE** Removed the ``check_argument_types()`` and
  ``check_return_type()`` functions (use ``@@typechecked`` instead)
- **BACKWARD INCOMPATIBLE** Moved ``install_import_hook`` to be directly importable
  from the ``typeguard`` module
- **BACKWARD INCOMPATIBLE** Changed the checking of collections (list, set, dict,
  sequence, mapping) to only check the first item by default. To get the old behavior,
  set ``typeguard.config.collection_check_strategy`` to
  ``CollectionCheckStrategy.ALL_ITEMS``
- **BACKWARD INCOMPATIBLE** Type checking failures now raise
  ``typeguard.TypeCheckError`` instead of ``TypeError``
- Dropped Python 3.5 and 3.6 support
- Dropped the deprecated profiler hook (``TypeChecker``)
- Added a configuration system
- Added support for custom type checking functions
- Added support for PEP 604 union types (``X | Y``) on all Python versions
- Added support for generic built-in collection types (``list[int]`` et al) on all
  Python versions
- Added support for checking arbitrary ``Mapping`` types
- Added support for the ``Self`` type
- Added support for ``typing.Never`` (and ``typing_extensions.Never``)
- Added support for ``Never`` and ``NoReturn`` in argument annotations
- Added support for ``LiteralString``
- Added support for ``TypeGuard``
- Added support for the subclassable ``Any`` on Python 3.11 and ``typing_extensions``
- Added the possibility to have the import hook instrument all packages
- Added the ``suppress_type_checks()`` context manager function for temporarily
  disabling type checks
- Much improved error messages showing where the type check failed
- Made it possible to apply ``@@typechecked`` on top of ``@@classmethod`` /
  ``@@staticmethod`` (PR by jacobpbrugh)
- Changed ``check_type()`` to return the passed value, so it can be used (to an extent)
  in place of ``typing.cast()``, but with run-time type checking
- Replaced custom implementation of ``is_typeddict()`` with the implementation from
  ``typing_extensions`` v4.1.0
- Emit ``InstrumentationWarning`` instead of raising ``RuntimeError`` from the pytest
  plugin if modules in the target package have already been imported
- Fixed ``TypeError`` when checking against ``TypedDict`` when the value has mixed types
  among the extra keys (PR by biolds)
- Fixed incompatibility with ``typing_extensions`` v4.1+ on Python 3.10 (PR by David C.)
- Fixed checking of ``Tuple[()]`` on Python 3.11 and ``tuple[()]`` on Python 3.9+
- Fixed integers 0 and 1 passing for ``Literal[False]`` and ``Literal[True]``,
  respectively
- Fixed type checking of annotated variable positional and keyword arguments (``*args``
  and ``**kwargs``)
- Fixed checks against ``unittest.Mock`` and derivatives being done in the wrong place
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2022/01/27 08:17:13 wiz Exp $
d3 1
a3 1
DISTNAME=	typeguard-3.0.2
d13 2
a14 2
TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
d16 2
a17 2
TEST_DEPENDS+=	${PYPKGPREFIX}-mypy>0:../../lang/py-mypy
TEST_DEPENDS+=	${PYPKGPREFIX}-test>0:../../devel/py-test
@


1.2
log
@py-typeguard: add missing build dependency
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2022/01/23 19:45:31 adam Exp $
d3 1
a3 1
DISTNAME=	typeguard-2.13.3
d13 3
a15 1
BUILD_DEPENDS+=	${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
a17 1
TEST_DEPENDS+=	${PYPKGPREFIX}-typing-extensions>0:../../devel/py-typing-extensions
d23 1
d27 10
a36 1
.include "../../lang/python/egg.mk"
@


1.1
log
@py-typeguard: added version 2.13.3

This library provides run-time type checking for functions defined with PEP 484
argument (and return) type annotations.
@
text
@d1 1
a1 1
# $NetBSD$
d13 1
@

