Added some missing parameter annotations and type arguments detected by pyright. (#5061)

Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
Eric Traut
2021-02-23 11:46:53 -07:00
committed by GitHub
parent c7c025ae08
commit a1f16da64e
8 changed files with 16 additions and 12 deletions

View File

@@ -21,10 +21,10 @@ _T = TypeVar("_T")
_T1 = TypeVar("_T1")
_T2 = TypeVar("_T2")
_T3 = TypeVar("_T3")
_I = TypeVar("_I", bound=Iterable)
_I = TypeVar("_I", bound=Iterable[Any])
_K = TypeVar("_K")
_V = TypeVar("_V")
_M = TypeVar("_M", bound=Mapping)
_M = TypeVar("_M", bound=Mapping[Any, Any])
# To be more precise on instance_of use some overloads.
# If there are more than 3 items in the tuple then we fall back to Any