From 8d90c187ddd203fcdf427dd29b87263bd619601c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 13:00:06 +0000 Subject: [PATCH 1/2] build(deps-dev): bump mypy from 2.1.0 to 2.3.0 Bumps [mypy](https://github.com/python/mypy) from 2.1.0 to 2.3.0. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v2.1.0...v2.3.0) --- updated-dependencies: - dependency-name: mypy dependency-version: 2.3.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f6c997bb..9cec56e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,7 +72,7 @@ mss = "mss.__main__:main" dev = [ "build==1.5.1", "lxml==6.1.1", - "mypy==2.1.0", + "mypy==2.3.0", "ruff==0.15.21", "twine==6.2.0", "typing_extensions==4.16.0", From 6a677e0eefd39da6397465f27515b691c6e01ac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Schoentgen?= Date: Mon, 13 Jul 2026 15:10:21 +0200 Subject: [PATCH 2/2] fixes --- src/xcbproto/gen_xcb_to_py.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xcbproto/gen_xcb_to_py.py b/src/xcbproto/gen_xcb_to_py.py index 648a5e4e..58540464 100755 --- a/src/xcbproto/gen_xcb_to_py.py +++ b/src/xcbproto/gen_xcb_to_py.py @@ -747,7 +747,7 @@ def lib_for_proto(protocol: str) -> str: def camel_case(name: str, protocol: str | None = None) -> str: - prefix = "" if protocol in {"xproto", None} else camel_case(protocol) # type: ignore[arg-type] + prefix = "" if protocol in {"xproto", None} else camel_case(protocol) if not name.isupper() and not name.islower(): # It's already in camel case. return prefix + name @@ -763,7 +763,7 @@ def snake_case(name: str, protocol: str | None = None) -> str: "xproto", None, } - else f"{snake_case(protocol)}_" # type: ignore[arg-type] + else f"{snake_case(protocol)}_" ) if name.islower(): return prefix + name