mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-24 10:38:28 +08:00
Added missing type annotations and type arguments (#5070)
Co-authored-by: Eric Traut <erictr@microsoft.com> Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
This commit is contained in:
@@ -14,7 +14,7 @@ class Markup(text_type):
|
||||
def __mul__(self, num: int) -> Markup: ...
|
||||
def __rmul__(self, num: int) -> Markup: ...
|
||||
def __mod__(self, *args: Any) -> Markup: ...
|
||||
def join(self, seq: Iterable[text_type]): ...
|
||||
def join(self, seq: Iterable[text_type]) -> text_type: ...
|
||||
def split(self, sep: Optional[text_type] = ..., maxsplit: int = ...) -> List[text_type]: ...
|
||||
def rsplit(self, sep: Optional[text_type] = ..., maxsplit: int = ...) -> List[text_type]: ...
|
||||
def splitlines(self, keepends: bool = ...) -> List[text_type]: ...
|
||||
@@ -24,8 +24,8 @@ class Markup(text_type):
|
||||
def escape(cls, s: text_type) -> Markup: ... # noqa: F811
|
||||
def partition(self, sep: text_type) -> Tuple[Markup, Markup, Markup]: ...
|
||||
def rpartition(self, sep: text_type) -> Tuple[Markup, Markup, Markup]: ...
|
||||
def format(self, *args, **kwargs) -> Markup: ...
|
||||
def __html_format__(self, format_spec) -> Markup: ...
|
||||
def format(self, *args: Any, **kwargs: Any) -> Markup: ...
|
||||
def __html_format__(self, format_spec: text_type) -> Markup: ...
|
||||
def __getslice__(self, start: int, stop: int) -> Markup: ...
|
||||
def __getitem__(self, i: Union[int, slice]) -> Markup: ...
|
||||
def capitalize(self) -> Markup: ...
|
||||
|
||||
Reference in New Issue
Block a user