We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7a0cf3 commit 49937b9Copy full SHA for 49937b9
pandas/io/clipboard/__init__.py
@@ -94,7 +94,8 @@ class PyperclipException(RuntimeError):
94
95
class PyperclipWindowsException(PyperclipException):
96
def __init__(self, message) -> None:
97
- message += f" ({ctypes.WinError()})"
+ # attr only exists on Windows, so typing fails on other platforms
98
+ message += f" ({ctypes.WinError()})" # type: ignore[attr-defined]
99
super().__init__(message)
100
101
0 commit comments