mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Fix ctypes.FormatError code parameter to be optional (#6635)
This commit is contained in:
@@ -150,7 +150,7 @@ def create_unicode_buffer(init: _UnionT[int, Text], size: int | None = ...) -> A
|
||||
if sys.platform == "win32":
|
||||
def DllCanUnloadNow() -> int: ...
|
||||
def DllGetClassObject(rclsid: Any, riid: Any, ppv: Any) -> int: ... # TODO not documented
|
||||
def FormatError(code: int) -> str: ...
|
||||
def FormatError(code: int = ...) -> str: ...
|
||||
def GetLastError() -> int: ...
|
||||
|
||||
def get_errno() -> int: ...
|
||||
|
||||
@@ -158,7 +158,7 @@ def create_unicode_buffer(init: int | str, size: int | None = ...) -> Array[c_wc
|
||||
if sys.platform == "win32":
|
||||
def DllCanUnloadNow() -> int: ...
|
||||
def DllGetClassObject(rclsid: Any, riid: Any, ppv: Any) -> int: ... # TODO not documented
|
||||
def FormatError(code: int) -> str: ...
|
||||
def FormatError(code: int = ...) -> str: ...
|
||||
def GetLastError() -> int: ...
|
||||
|
||||
def get_errno() -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user