mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Big diff: Use new "|" union syntax (#5872)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user