mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
fix type for xmlrpc.client.Fault.faultCode (#5083)
The type of `faultCode` was declared as `str`, but it has to be an `int`. See e.g. http://xmlrpc.com/spec.md. See also https://bugs.python.org/issue43354.
This commit is contained in:
@@ -47,9 +47,9 @@ class ResponseError(Error): ...
|
||||
|
||||
class Fault(Error):
|
||||
|
||||
faultCode: str
|
||||
faultCode: int
|
||||
faultString: str
|
||||
def __init__(self, faultCode: str, faultString: str, **extra: Any) -> None: ...
|
||||
def __init__(self, faultCode: int, faultString: str, **extra: Any) -> None: ...
|
||||
|
||||
boolean = bool
|
||||
Boolean = bool
|
||||
|
||||
Reference in New Issue
Block a user