mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
python-xlib: remove workaround for pytype (#9590)
This commit is contained in:
@@ -1,13 +1,5 @@
|
||||
from typing import type_check_only
|
||||
|
||||
from Xlib._typing import ErrorHandler
|
||||
from Xlib.protocol import display
|
||||
|
||||
# Workaround for pytype crash. Should be Xlib.display._BaseDisplay
|
||||
@type_check_only
|
||||
class _BaseDisplay(display.Display):
|
||||
def __init__(self, display: str | None = ...) -> None: ...
|
||||
def get_atom(self, atomname: str, only_if_exists: bool = ...) -> int: ...
|
||||
from Xlib.display import _BaseDisplay
|
||||
|
||||
class Resource:
|
||||
display: _BaseDisplay
|
||||
|
||||
Reference in New Issue
Block a user