Skip to content

Commit c83c29b

Browse files
author
Xiddoc
committed
Fixed type for CheckedCall
1 parent 360e2f1 commit c83c29b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

stubs/clipboard/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version = "0.0.*"
22
upstream_repository = "https://github.com/terryyin/clipboard"
3-
requires = ["types-pyperclip"]
3+
requires = ["pyperclip"]
44
partial_stub = true
55

66
[tool.stubtest]

stubs/pyperclip/pyperclip/__init__.pyi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
__all__ = ["copy", "paste", "set_clipboard", "determine_clipboard"]
22

33
from collections.abc import Callable
4-
from typing import Any, Literal, Protocol, TypeAlias
4+
from typing import Any, Literal, Protocol
5+
from typing_extensions import TypeAlias
56

67
class PyperclipException(RuntimeError): ...
78

@@ -16,7 +17,7 @@ class _WinDLLUser32Function(Protocol):
1617
# Wrapper for ctypes calls, should not be exposed to the developer
1718
class CheckedCall:
1819
def __init__(self, f: _WinDLLUser32Function) -> None: ...
19-
def __call__(self, *args: Any): ...
20+
def __call__(self, *args: Any) -> Any: ...
2021
def __setattr__(self, key: str, value: Any) -> None: ...
2122

2223
_ClipboardMechanismName: TypeAlias = Literal[

0 commit comments

Comments
 (0)