mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-15 02:31:09 +08:00
Always alias collections.abc.Set (#6712)
This commit is contained in:
1 parent
51a2cd1289
commit
975b3e901b
5 files changed
+14
-10
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import sys
|
||||
from collections.abc import Mapping, Set
|
||||
from collections.abc import Mapping, Set as AbstractSet
|
||||
from datetime import datetime
|
||||
from typing import Any, Tuple, overload
|
||||
|
||||
@@ -11,14 +11,14 @@ else:
|
||||
@overload
|
||||
def search_dates(
|
||||
text: str,
|
||||
languages: list[str] | Tuple[str, ...] | Set[str] | None,
|
||||
languages: list[str] | Tuple[str, ...] | AbstractSet[str] | None,
|
||||
settings: Mapping[Any, Any] | None,
|
||||
add_detected_language: Literal[True],
|
||||
) -> list[tuple[str, datetime, str]]: ...
|
||||
@overload
|
||||
def search_dates(
|
||||
text: str,
|
||||
languages: list[str] | Tuple[str, ...] | Set[str] | None = ...,
|
||||
languages: list[str] | Tuple[str, ...] | AbstractSet[str] | None = ...,
|
||||
settings: Mapping[Any, Any] | None = ...,
|
||||
add_detected_language: Literal[False] = ...,
|
||||
) -> list[tuple[str, datetime]]: ...
|
||||
Reference in new issue
Block a user