diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b4677882..3dd72fd1 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14-dev"] + python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v5 - uses: actions/setup-python@v5 @@ -59,7 +59,7 @@ jobs: strategy: fail-fast: false matrix: - python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14-dev"] + python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v5 - uses: actions/setup-python@v5 @@ -74,7 +74,7 @@ jobs: strategy: fail-fast: false matrix: - python: ["3.10", "3.12", "3.14-dev"] + python: ["3.10", "3.12", "3.14"] steps: - uses: actions/checkout@v5 - uses: actions/setup-python@v5 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 41e22b96..ed62630d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,12 +26,12 @@ repos: exclude: .bumpversion.cfg - repo: https://github.com/psf/black - rev: 25.1.0 + rev: 25.9.0 hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.10 + rev: v0.14.0 hooks: - id: ruff args: ["--fix"] @@ -42,14 +42,14 @@ repos: - id: yesqa - repo: https://github.com/crate-ci/typos - rev: v1.35.5 + rev: v1.38.1 hooks: - id: typos args: [] verbose: true - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.17.1 + rev: v1.18.2 hooks: - id: mypy files: jsonargparse.*/.*.py diff --git a/jsonargparse/_parameter_resolvers.py b/jsonargparse/_parameter_resolvers.py index 129788cc..3f397ce3 100644 --- a/jsonargparse/_parameter_resolvers.py +++ b/jsonargparse/_parameter_resolvers.py @@ -47,7 +47,7 @@ class ParamData: ParamList = List[ParamData] -parameter_attributes = [s[1:] for s in inspect.Parameter.__slots__] # type: ignore[attr-defined] +parameter_attributes = [s[1:] for s in inspect.Parameter.__slots__] kinds = inspect._ParameterKind ast_assign_type: Tuple[Type[ast.AST], ...] = (ast.AnnAssign, ast.Assign) param_kwargs_pop_or_get = "**.pop|get():" diff --git a/jsonargparse/_postponed_annotations.py b/jsonargparse/_postponed_annotations.py index f085b7ff..b091521e 100644 --- a/jsonargparse/_postponed_annotations.py +++ b/jsonargparse/_postponed_annotations.py @@ -254,7 +254,7 @@ def get_types(obj: Any, logger: Optional[logging.Logger] = None) -> dict: if isinstance(types, Exception): if logger: logger.debug(f"Failed to parse the source code for {obj}", exc_info=ex2) - raise type(types)(f"{repr(types)} + {repr(ex2)}") from ex2 # type: ignore[arg-type] + raise type(types)(f"{repr(types)} + {repr(ex2)}") from ex2 return types aliases = __builtins__.copy() # type: ignore[attr-defined]