Big diff: Use new "|" union syntax (#5872)

This commit is contained in:
Akuli
2021-08-08 12:05:21 +03:00
committed by GitHub
parent b9adb7a874
commit ee487304d7
578 changed files with 8080 additions and 8966 deletions

View File

@@ -1,4 +1,4 @@
from typing import Iterable, Optional
from typing import Iterable
def smart_truncate(
string: str, max_length: int = ..., word_boundary: bool = ..., separator: str = ..., save_order: bool = ...
@@ -13,7 +13,7 @@ def slugify(
separator: str = ...,
save_order: bool = ...,
stopwords: Iterable[str] = ...,
regex_pattern: Optional[str] = ...,
regex_pattern: str | None = ...,
lowercase: bool = ...,
replacements: Iterable[str] = ...,
) -> str: ...