mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Backport more Self-related changes to Python 2 (#7166)
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
from _typeshed import Self
|
||||
from typing import Any, Iterable, MutableSequence, Sequence, Text, TypeVar, overload
|
||||
|
||||
_MST = TypeVar("_MST", bound=MutableString)
|
||||
from typing import Any, Iterable, MutableSequence, Sequence, Text, overload
|
||||
|
||||
class UserString(Sequence[UserString]):
|
||||
data: unicode
|
||||
@@ -70,5 +68,5 @@ class MutableString(UserString, MutableSequence[MutableString]):
|
||||
def __delitem__(self, index: int | slice) -> None: ...
|
||||
def immutable(self) -> UserString: ...
|
||||
def __iadd__(self: Self, other: Any) -> Self: ...
|
||||
def __imul__(self, n: int) -> _MST: ...
|
||||
def __imul__(self: Self, n: int) -> Self: ...
|
||||
def insert(self, index: int, value: Any) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user