Skip to content

Commit 05eadf5

Browse files
authored
python-xlib: remove workaround for pytype (#9590)
1 parent 0fe3ef2 commit 05eadf5

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

stubs/python-xlib/Xlib/xobject/resource.pyi

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
1-
from typing import type_check_only
2-
31
from Xlib._typing import ErrorHandler
4-
from Xlib.protocol import display
5-
6-
# Workaround for pytype crash. Should be Xlib.display._BaseDisplay
7-
@type_check_only
8-
class _BaseDisplay(display.Display):
9-
def __init__(self, display: str | None = ...) -> None: ...
10-
def get_atom(self, atomname: str, only_if_exists: bool = ...) -> int: ...
2+
from Xlib.display import _BaseDisplay
113

124
class Resource:
135
display: _BaseDisplay

0 commit comments

Comments
 (0)