Replace Any with Incomplete in many places (#9558)

This commit is contained in:
Alex Waygood
2023-01-18 08:48:16 +00:00
committed by GitHub
parent ddfaca3200
commit 4fea314594
460 changed files with 3779 additions and 2909 deletions

View File

@@ -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):

View File

@@ -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]