@@ -461,7 +461,7 @@ class str(Sequence[str]):
461
461
def format (self : LiteralString , * args : LiteralString , ** kwargs : LiteralString ) -> LiteralString : ...
462
462
@overload
463
463
def format (self , * args : object , ** kwargs : object ) -> str : ...
464
- def format_map (self , map : _FormatMapMapping ) -> str : ...
464
+ def format_map (self , mapping : _FormatMapMapping , / ) -> str : ...
465
465
def index (self , sub : str , start : SupportsIndex | None = ..., end : SupportsIndex | None = ..., / ) -> int : ...
466
466
def isalnum (self ) -> bool : ...
467
467
def isalpha (self ) -> bool : ...
@@ -495,10 +495,20 @@ class str(Sequence[str]):
495
495
def partition (self : LiteralString , sep : LiteralString , / ) -> tuple [LiteralString , LiteralString , LiteralString ]: ...
496
496
@overload
497
497
def partition (self , sep : str , / ) -> tuple [str , str , str ]: ... # type: ignore[misc]
498
- @overload
499
- def replace (self : LiteralString , old : LiteralString , new : LiteralString , count : SupportsIndex = - 1 , / ) -> LiteralString : ...
500
- @overload
501
- def replace (self , old : str , new : str , count : SupportsIndex = - 1 , / ) -> str : ... # type: ignore[misc]
498
+ if sys .version_info >= (3 , 13 ):
499
+ @overload
500
+ def replace (
501
+ self : LiteralString , old : LiteralString , new : LiteralString , / , count : SupportsIndex = - 1
502
+ ) -> LiteralString : ...
503
+ @overload
504
+ def replace (self , old : str , new : str , / , count : SupportsIndex = - 1 ) -> str : ... # type: ignore[misc]
505
+ else :
506
+ @overload
507
+ def replace (
508
+ self : LiteralString , old : LiteralString , new : LiteralString , count : SupportsIndex = - 1 , /
509
+ ) -> LiteralString : ...
510
+ @overload
511
+ def replace (self , old : str , new : str , count : SupportsIndex = - 1 , / ) -> str : ... # type: ignore[misc]
502
512
if sys .version_info >= (3 , 9 ):
503
513
@overload
504
514
def removeprefix (self : LiteralString , prefix : LiteralString , / ) -> LiteralString : ...
@@ -1214,6 +1224,9 @@ class property:
1214
1224
fset : Callable [[Any , Any ], None ] | None
1215
1225
fdel : Callable [[Any ], None ] | None
1216
1226
__isabstractmethod__ : bool
1227
+ if sys .version_info >= (3 , 13 ):
1228
+ __name__ : str
1229
+
1217
1230
def __init__ (
1218
1231
self ,
1219
1232
fget : Callable [[Any ], Any ] | None = ...,
@@ -2057,3 +2070,7 @@ if sys.version_info >= (3, 11):
2057
2070
def split (
2058
2071
self , condition : Callable [[_ExceptionT_co | Self ], bool ], /
2059
2072
) -> tuple [ExceptionGroup [_ExceptionT_co ] | None , ExceptionGroup [_ExceptionT_co ] | None ]: ...
2073
+
2074
+ if sys .version_info >= (3 , 13 ):
2075
+ class IncompleteInputError (SyntaxError ): ...
2076
+ class PythonFinalizationError (RuntimeError ): ...
0 commit comments