mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Callable, Dict, List, Pattern
|
||||
from typing import Callable, Pattern
|
||||
|
||||
class TextWrapper:
|
||||
width: int = ...
|
||||
@@ -19,7 +19,7 @@ class TextWrapper:
|
||||
wordsep_re: Pattern[str] = ...
|
||||
wordsep_simple_re: Pattern[str] = ...
|
||||
whitespace_trans: str = ...
|
||||
unicode_whitespace_trans: Dict[int, int] = ...
|
||||
unicode_whitespace_trans: dict[int, int] = ...
|
||||
uspace: int = ...
|
||||
x: str = ... # leaked loop variable
|
||||
def __init__(
|
||||
@@ -40,12 +40,12 @@ class TextWrapper:
|
||||
) -> None: ...
|
||||
# Private methods *are* part of the documented API for subclasses.
|
||||
def _munge_whitespace(self, text: str) -> str: ...
|
||||
def _split(self, text: str) -> List[str]: ...
|
||||
def _fix_sentence_endings(self, chunks: List[str]) -> None: ...
|
||||
def _handle_long_word(self, reversed_chunks: List[str], cur_line: List[str], cur_len: int, width: int) -> None: ...
|
||||
def _wrap_chunks(self, chunks: List[str]) -> List[str]: ...
|
||||
def _split_chunks(self, text: str) -> List[str]: ...
|
||||
def wrap(self, text: str) -> List[str]: ...
|
||||
def _split(self, text: str) -> list[str]: ...
|
||||
def _fix_sentence_endings(self, chunks: list[str]) -> None: ...
|
||||
def _handle_long_word(self, reversed_chunks: list[str], cur_line: list[str], cur_len: int, width: int) -> None: ...
|
||||
def _wrap_chunks(self, chunks: list[str]) -> list[str]: ...
|
||||
def _split_chunks(self, text: str) -> list[str]: ...
|
||||
def wrap(self, text: str) -> list[str]: ...
|
||||
def fill(self, text: str) -> str: ...
|
||||
|
||||
def wrap(
|
||||
@@ -63,7 +63,7 @@ def wrap(
|
||||
drop_whitespace: bool = ...,
|
||||
max_lines: int = ...,
|
||||
placeholder: str = ...,
|
||||
) -> List[str]: ...
|
||||
) -> list[str]: ...
|
||||
def fill(
|
||||
text: str,
|
||||
width: int = ...,
|
||||
|
||||
Reference in New Issue
Block a user