Skip to content

Commit 7f3317d

Browse files
committed
Use generated code to interface with XCB instead of hand-written code
1 parent 163ec2d commit 7f3317d

File tree

14 files changed

+10493
-1689
lines changed

14 files changed

+10493
-1689
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ mss = "mss.__main__:main"
7272
[project.optional-dependencies]
7373
dev = [
7474
"build==1.3.0",
75+
"lxml==6.0.2",
7576
"mypy==1.18.2",
7677
"ruff==0.14.3",
7778
"twine==6.2.0",
@@ -188,3 +189,6 @@ ignore = [
188189
"S607", # `subprocess` call without explicit paths
189190
"SLF001", # private member accessed
190191
]
192+
193+
[tool.ruff.per-file-target-version]
194+
"src/xcbproto/*" = "py312"

src/mss/linux/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
from mss.exception import ScreenShotError
55

66

7-
def MSS(backend: str = "xlib", **kwargs: Any) -> MSSBase:
7+
# This factory function is named in upper-case for backwards compatibility.
8+
def MSS(backend: str = "default", **kwargs: Any) -> MSSBase: # noqa: N802
89
backend = backend.lower()
910
if backend in {"default", "xlib"}:
1011
from . import xlib # noqa: PLC0415

0 commit comments

Comments
 (0)