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:
Jürgen Gmach
2021-03-02 13:57:26 +01:00
committed by GitHub
parent b03cd49a87
commit 771e872cf6

View File

@@ -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