Skip to content

Commit 49937b9

Browse files
authored
TYP/CI: Fix failing clipboard typing (pandas-dev#46395)
1 parent e7a0cf3 commit 49937b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/io/clipboard/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ class PyperclipException(RuntimeError):
9494

9595
class PyperclipWindowsException(PyperclipException):
9696
def __init__(self, message) -> None:
97-
message += f" ({ctypes.WinError()})"
97+
# attr only exists on Windows, so typing fails on other platforms
98+
message += f" ({ctypes.WinError()})" # type: ignore[attr-defined]
9899
super().__init__(message)
99100

100101

0 commit comments

Comments
 (0)