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:
Eric Traut
2021-02-25 16:09:58 -07:00
committed by GitHub
parent bf583da275
commit 4b4ced5fa0
16 changed files with 62 additions and 62 deletions

View File

@@ -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: ...