Skip to content

Commit f0fe10b

Browse files
committed
typing.TypeVarTuple: add bound/variance properties from 3.15
1 parent 4ab04d2 commit f0fe10b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

stdlib/typing.pyi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,15 @@ if sys.version_info >= (3, 11):
257257
class TypeVarTuple:
258258
@property
259259
def __name__(self) -> str: ...
260+
if sys.version_info >= (3, 15):
261+
@property
262+
def __bound__(self) -> Any | None: ... # AnnotationForm
263+
@property
264+
def __covariant__(self) -> bool: ...
265+
@property
266+
def __contravariant__(self) -> bool: ...
267+
@property
268+
def __infer_variance__(self) -> bool: ...
260269
if sys.version_info >= (3, 13):
261270
@property
262271
def __default__(self) -> Any: ... # AnnotationForm

0 commit comments

Comments
 (0)