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", 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