From c75087afa85830db9842a23b708cbaa0df8d1db2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 20:45:16 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/editorconfig-checker/editorconfig-checker.python: 3.6.0 → 3.6.1](https://github.com/editorconfig-checker/editorconfig-checker.python/compare/3.6.0...3.6.1) - [github.com/python-jsonschema/check-jsonschema: 0.35.0 → 0.37.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.35.0...0.37.0) - [github.com/astral-sh/ruff-pre-commit: v0.14.8 → v0.15.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.8...v0.15.6) - [github.com/codespell-project/codespell: v2.4.1 → v2.4.2](https://github.com/codespell-project/codespell/compare/v2.4.1...v2.4.2) - [github.com/igorshubovych/markdownlint-cli: v0.46.0 → v0.48.0](https://github.com/igorshubovych/markdownlint-cli/compare/v0.46.0...v0.48.0) - [github.com/macisamuele/language-formatters-pre-commit-hooks: v2.15.0 → v2.16.0](https://github.com/macisamuele/language-formatters-pre-commit-hooks/compare/v2.15.0...v2.16.0) - [github.com/pre-commit/mirrors-mypy: v1.19.0 → v1.19.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.19.0...v1.19.1) --- .pre-commit-config.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 40bc09f..32ea408 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,11 +33,11 @@ repos: language: python name: Check licenses of Python dependencies - repo: https://github.com/editorconfig-checker/editorconfig-checker.python - rev: 3.6.0 + rev: 3.6.1 hooks: - id: editorconfig-checker - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.35.0 + rev: 0.37.0 hooks: - id: check-github-workflows - id: check-github-actions @@ -54,7 +54,7 @@ repos: - flake8-docstrings-complete - flake8-pyproject - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.8 + rev: v0.15.6 hooks: - id: ruff-check name: Linting Python code (ruff) @@ -62,7 +62,7 @@ repos: - id: ruff-format name: Formatting Python code (ruff) - repo: https://github.com/codespell-project/codespell - rev: v2.4.1 + rev: v2.4.2 hooks: - id: codespell name: Fixing common spelling mistakes @@ -75,20 +75,20 @@ repos: - id: docformatter name: Fixing docstring formatting - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.46.0 + rev: v0.48.0 hooks: - id: markdownlint name: Fixing markdown linting errors args: [--disable, MD013, MD033, --fix] - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks - rev: v2.15.0 + rev: v2.16.0 hooks: - id: pretty-format-yaml args: [--autofix, --indent, "2", --offset, "2", --preserve-quotes] - id: pretty-format-toml args: [--autofix] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.19.0 + rev: v1.19.1 hooks: - id: mypy name: Static typechecking (mypy) From 3cdfdc02f8cdc4a278254befacadeea74e103f33 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 20:45:55 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/pycasx/scenario/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pycasx/scenario/__init__.py b/src/pycasx/scenario/__init__.py index 1900c0a..3c433df 100644 --- a/src/pycasx/scenario/__init__.py +++ b/src/pycasx/scenario/__init__.py @@ -90,18 +90,18 @@ class GeographicCoordinates: @overload -def convert(value: int | float) -> float: ... +def convert(value: float) -> float: ... @overload -def convert(value: int | float, unit: str) -> float: ... +def convert(value: float, unit: str) -> float: ... @overload def convert(value: str, unit: str) -> float: ... -def convert(value: int | float | str, unit: str = "") -> float: +def convert(value: float | str, unit: str = "") -> float: """Convert a value to a specific unit. This function takes a value and a unit and converts the value to the