Replace Any with Incomplete in many places (#9565)

This commit is contained in:
Avasam
2023-01-18 14:12:46 -05:00
committed by GitHub
parent a4e3cfefac
commit 6ac24ed923
16 changed files with 55 additions and 48 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
from _typeshed import Self
from _typeshed import Incomplete, Self
from collections.abc import Iterable
from typing import Any, ClassVar
from typing_extensions import TypeAlias
@@ -9,8 +9,8 @@ class BaseElement:
tag: ClassVar[str | None]
children: list[BaseElement]
value: str | None
attributes: Any | None
caldav_class: Any | None
attributes: Incomplete | None
caldav_class: Incomplete | None
def __init__(self, name: str | None = ..., value: str | bytes | None = ...) -> None: ...
def __add__(self: Self, other: BaseElement) -> Self: ...
def xmlelement(self) -> _Element: ...