mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Fix collections.Userstring.encode() (#4787)
* Revert Python 2 part of ba223399, the stub was correct
* Describe UserString.encode() return type correctly for Python <3.8
This commit is contained in:
@@ -26,7 +26,7 @@ class UserString(Sequence[UserString]):
|
||||
def center(self: _UST, width: int, *args: Any) -> _UST: ...
|
||||
def count(self, sub: int, start: int = ..., end: int = ...) -> int: ...
|
||||
def decode(self: _UST, encoding: Optional[str] = ..., errors: Optional[str] = ...) -> _UST: ...
|
||||
def encode(self: _UST, encoding: Optional[str] = ..., errors: Optional[str] = ...) -> str: ...
|
||||
def encode(self: _UST, encoding: Optional[str] = ..., errors: Optional[str] = ...) -> _UST: ...
|
||||
def endswith(self, suffix: Text, start: int = ..., end: int = ...) -> bool: ...
|
||||
def expandtabs(self: _UST, tabsize: int = ...) -> _UST: ...
|
||||
def find(self, sub: Text, start: int = ..., end: int = ...) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user