From 9f0e4f51d551bb129fbf93e6ea82219e1c1c411a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 18 Dec 2023 08:28:36 +0100 Subject: [PATCH] ci - pre-commit autoupdate (#114) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ci - pre-commit autoupdate updates: - [github.com/pre-commit/mirrors-mypy: v1.6.0 → v1.7.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.6.0...v1.7.1) * ci - Add MyPy dependencies * src - Fix type errors --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: PhiBo --- .pre-commit-config.yaml | 3 ++- overpy/__init__.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ed81ad6..d436a7c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -72,10 +72,11 @@ repos: - flake8-implicit-str-concat - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.6.0 + rev: v1.7.1 hooks: - id: mypy args: [--no-strict-optional, --ignore-missing-imports, --allow-untyped-global] + additional_dependencies: [types-simplejson] exclude: ^(docs/) # # Check for missing licensing and copyright information. diff --git a/overpy/__init__.py b/overpy/__init__.py index 3117212..d9ae794 100644 --- a/overpy/__init__.py +++ b/overpy/__init__.py @@ -1421,7 +1421,7 @@ def __init__(self, result: Result): #: Current relation member object self.cur_relation_member: Optional[RelationMember] = None - def startElement(self, name: str, attrs: dict): + def startElement(self, name: Any, attrs: Any): """ Handle opening elements.