mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Replace Any with Incomplete in many places (#9558)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import datetime
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Iterable
|
||||
from typing import Any
|
||||
from typing_extensions import TypeAlias
|
||||
@@ -32,7 +33,7 @@ class rrulebase:
|
||||
def count(self): ...
|
||||
def before(self, dt, inc: bool = ...): ...
|
||||
def after(self, dt, inc: bool = ...): ...
|
||||
def xafter(self, dt, count: Any | None = ..., inc: bool = ...): ...
|
||||
def xafter(self, dt, count: Incomplete | None = ..., inc: bool = ...): ...
|
||||
def between(self, after, before, inc: bool = ..., count: int = ...): ...
|
||||
|
||||
class rrule(rrulebase):
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import datetime
|
||||
from typing import Any, ClassVar, Protocol, TypeVar
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar, Protocol, TypeVar
|
||||
from typing_extensions import Literal
|
||||
|
||||
from ..relativedelta import relativedelta
|
||||
@@ -99,7 +100,7 @@ class _ICalReader(Protocol):
|
||||
class tzical:
|
||||
def __init__(self, fileobj: str | _ICalReader) -> None: ...
|
||||
def keys(self): ...
|
||||
def get(self, tzid: Any | None = ...): ...
|
||||
def get(self, tzid: Incomplete | None = ...): ...
|
||||
|
||||
TZFILES: list[str]
|
||||
TZPATHS: list[str]
|
||||
|
||||
Reference in New Issue
Block a user