mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
ctypes: fix arg name on windows (#4111)
Co-authored-by: hauntsaninja <>
This commit is contained in:
@@ -183,7 +183,7 @@ def sizeof(obj_or_type: _UnionT[_CData, Type[_CData]]) -> int: ...
|
||||
def string_at(address: _CVoidConstPLike, size: int = ...) -> bytes: ...
|
||||
if sys.platform == 'win32':
|
||||
def WinError(code: Optional[int] = ...,
|
||||
desc: Optional[str] = ...) -> WindowsError: ...
|
||||
descr: Optional[str] = ...) -> OSError: ...
|
||||
def wstring_at(address: _CVoidConstPLike, size: int = ...) -> str: ...
|
||||
|
||||
class _SimpleCData(Generic[_T], _CData):
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
ctypes.GetLastError # Is actually a pointer
|
||||
ctypes.WinError # Parameter name mismatch
|
||||
locale.[A-Z0-9_]+ # Constants that should be moved to _locale and re-exported conditionally
|
||||
locale.nl_langinfo # Function that should be moved to _locale and re-exported conditionally
|
||||
os.path.join # Parameter name mismatch
|
||||
|
||||
Reference in New Issue
Block a user