mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
[pynput] Fix annotations of Controller.Key(Code) (#8722)
Document stubtest entries
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
# TODO: go through this allowlist, figure out which of them are false positives
|
||||
pynput.keyboard.Controller._Key
|
||||
pynput.keyboard.Controller._KeyCode
|
||||
# These __init__ methods have *args, **kwargs arguments on some platforms, but not others
|
||||
pynput.keyboard.Controller.__init__
|
||||
pynput.keyboard._base.Controller._Key
|
||||
pynput.keyboard._base.Controller._KeyCode
|
||||
pynput.keyboard._dummy.Controller._Key
|
||||
pynput.keyboard._dummy.Controller._KeyCode
|
||||
pynput.mouse.Controller.__init__
|
||||
# stubtest issues with non-`type` metaclasses, see https://github.com/python/mypy/issues/13316
|
||||
pynput.keyboard.Controller._Key
|
||||
pynput.keyboard._base.Controller._Key
|
||||
pynput.keyboard._dummy.Controller._Key
|
||||
|
||||
@@ -86,8 +86,8 @@ class Key(enum.Enum):
|
||||
scroll_lock: int
|
||||
|
||||
class Controller:
|
||||
_KeyCode: ClassVar[KeyCode] # undocumented
|
||||
_Key: ClassVar[Key] # undocumented
|
||||
_KeyCode: ClassVar[type[KeyCode]] # undocumented
|
||||
_Key: ClassVar[type[Key]] # undocumented
|
||||
|
||||
class InvalidKeyException(Exception): ...
|
||||
class InvalidCharacterException(Exception): ...
|
||||
|
||||
Reference in New Issue
Block a user