Skip to content

Commit e2fc504

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

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎stubs/clipboard/METADATA.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version = "0.0.*"
22
upstream_repository = "https://github.com/terryyin/clipboard"
3-
requires = ["types-pyperclip"]
4-
partial_stub = true
3+
requires = ["pyperclip"]
54

65
[tool.stubtest]
76
platforms = ["win32", "linux", "darwin"]
87
stubtest_requirements = ["pyperclip"]
8+
ignore_missing_stub = true

‎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)