Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion jsonargparse/_parameter_resolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():"
Expand Down
2 changes: 1 addition & 1 deletion jsonargparse/_postponed_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down