Skip to content

Commit 214222a

Browse files
author
Max Rozentsveyg
committed
Redefine _KT and _VT
1 parent b90b70e commit 214222a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

third_party/2and3/boto/utils.pyi

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import time
66

77
import boto.connection
88
from typing import (
9-
_KT,
10-
_VT,
119
Any,
1210
Callable,
1311
Dict,
@@ -18,9 +16,13 @@ from typing import (
1816
Sequence,
1917
Tuple,
2018
Type,
19+
TypeVar,
2120
Union,
2221
)
2322

23+
_KT = TypeVar('_KT')
24+
_VT = TypeVar('_VT')
25+
2426
_Provider = Any # TODO replace this with boto.provider.Provider once stubs exist
2527
_LockType = Any # TODO replace this with _thread.LockType once stubs exist
2628

@@ -63,7 +65,7 @@ def get_instance_metadata(
6365
url: str = ...,
6466
data: str = ...,
6567
timeout: Optional[int] = ...,
66-
num_retries: int = ...
68+
num_retries: int = ...,
6769
) -> Optional[LazyLoadMetadata]: ...
6870
def get_instance_identity(
6971
version: str = ...,

0 commit comments

Comments
 (0)