diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3ee4260..df3ec80 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", pypy-3.10] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", pypy-3.10] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/pyproject.toml b/pyproject.toml index 9dd5d1f..04bbde3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -98,7 +98,7 @@ pretty = true [tool.tox] legacy_tox_ini = """ [tox] -envlist = pypy3, py38, py39, py310, py311, py312 +envlist = pypy3, py38, py39, py310, py311, py312, py313 skip_missing_interpreters = true minversion = 4.0 diff --git a/tests/dummymodule.py b/tests/dummymodule.py index e4bf97b..d53c972 100644 --- a/tests/dummymodule.py +++ b/tests/dummymodule.py @@ -40,9 +40,17 @@ P = ParamSpec("P") -@no_type_check_decorator -def dummy_decorator(func): - return func +if sys.version_info <= (3, 13): + + @no_type_check_decorator + def dummy_decorator(func): + return func + + @dummy_decorator + def non_type_checked_decorated_func(x: int, y: str) -> 6: + # This is to ensure that we avoid using a local variable that's already in use + _call_memo = "foo" # noqa: F841 + return "foo" @typechecked @@ -55,13 +63,6 @@ def non_type_checked_func(x: int, y: str) -> 6: return "foo" -@dummy_decorator -def non_type_checked_decorated_func(x: int, y: str) -> 6: - # This is to ensure that we avoid using a local variable that's already in use - _call_memo = "foo" # noqa: F841 - return "foo" - - @typeguard_ignore def non_typeguard_checked_func(x: int, y: str) -> 6: return "foo"