Add type to OrderedDict (#1954)

OrderedDict needs to be typed just like Dict needs to be typed.  The
OrderedDict "input" variable key and value are used to append to a
string without any processing, so it seems unlikely that something other
than a string would be valid.
This commit is contained in:
Sachi King
2021-06-02 14:59:42 +10:00
committed by GitHub
parent b46647054a
commit ed7d0fe94f
+2 -2
View File
@@ -158,7 +158,7 @@ class Requester:
url: str,
parameters: Optional[Dict[str, Any]] = ...,
headers: Optional[Dict[str, Any]] = ...,
input: Optional[OrderedDict] = ...,
input: Optional[OrderedDict[str, str]] = ...,
cnx: Optional[
Union[HTTPRequestsConnectionClass, HTTPSRequestsConnectionClass]
] = ...,
@@ -169,7 +169,7 @@ class Requester:
url: str,
parameters: Optional[Dict[str, Any]] = ...,
headers: Optional[Dict[str, Any]] = ...,
input: Optional[OrderedDict] = ...,
input: Optional[OrderedDict[str, str]] = ...,
) -> Tuple[Dict[str, Any], Optional[Dict[str, Any]]]: ...
@classmethod
def resetConnectionClasses(cls) -> None: ...