Skip to content

Commit afcfdba

Browse files
committed
Reduce changes
1 parent ad96da7 commit afcfdba

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ docs = ["myst-parser"]
7272
dev = [
7373
{ include-group = "docs" },
7474
"ruff>=0.15.16",
75-
"ewmhlib",
75+
"ewmhlib", # Get type information even when not working on Linux
7676
"pywinctl>=0.3",
7777
"mypy>=0.990,<2",
7878
"types-python-xlib>=0.32",

src/pywinbox/_main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,7 @@ def fit(self, box: Box | tuple[int, int, int, int]) -> None:
574574

575575

576576
class PyWinBox(BaseClass):
577+
577578
def __init__(self,
578579
onQuery: Callable[[], Box] | None = None, onSet: Callable[[Box], None] | None = None,
579580
handle = None) -> None:

src/pywinbox/_pywinbox_linux.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/python
22
from __future__ import annotations
33

4-
import os
54
import sys
65

76
if sys.platform != "linux":
87
raise OSError(f"Cannot import {__name__} on {sys.platform}")
98

9+
import os
1010
from Xlib.xobject.drawable import Window as XWindow
1111

1212
from ._main import Box

0 commit comments

Comments
 (0)