Add default values for third-party stubs beginning with 'P' (#9957)

This commit is contained in:
Alex Waygood
2023-03-27 18:58:53 +01:00
committed by GitHub
parent 20f9b3685d
commit 6fd7e36e80
248 changed files with 2181 additions and 2133 deletions

View File

@@ -1,20 +1,20 @@
from collections.abc import Iterable
def smart_truncate(
string: str, max_length: int = ..., word_boundary: bool = ..., separator: str = ..., save_order: bool = ...
string: str, max_length: int = 0, word_boundary: bool = False, separator: str = " ", save_order: bool = False
) -> str: ...
def slugify(
text: str,
entities: bool = ...,
decimal: bool = ...,
hexadecimal: bool = ...,
max_length: int = ...,
word_boundary: bool = ...,
separator: str = ...,
save_order: bool = ...,
stopwords: Iterable[str] = ...,
regex_pattern: str | None = ...,
lowercase: bool = ...,
replacements: Iterable[Iterable[str]] = ...,
allow_unicode: bool = ...,
entities: bool = True,
decimal: bool = True,
hexadecimal: bool = True,
max_length: int = 0,
word_boundary: bool = False,
separator: str = "-",
save_order: bool = False,
stopwords: Iterable[str] = (),
regex_pattern: str | None = None,
lowercase: bool = True,
replacements: Iterable[Iterable[str]] = (),
allow_unicode: bool = False,
) -> str: ...