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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/xcbproto/gen_xcb_to_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading