We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40ffbeb commit ba97671Copy full SHA for ba97671
rxml.pyi
@@ -1,5 +1,6 @@
1
from enum import Enum
2
-from typing import Any
+
3
+DictTypes = str | dict[str, str] | list[DictTypes] | None
4
5
class SearchType(Enum):
6
Tag: int
@@ -26,8 +27,8 @@ class Node:
26
27
self, by: SearchType, value: str, depth: int | None = None
28
) -> list[Node]: ...
29
@classmethod
- def from_dict(cls, dict_: dict[str, Any]) -> Node: ...
30
- def to_dict(self) -> dict[str, Any]: ...
+ def from_dict(cls, dict_: dict[str, DictTypes]) -> Node: ...
31
+ def to_dict(self) -> dict[str, DictTypes]: ...
32
33
def read_file(file_path: str, root_tag: str) -> Node: ...
34
def read_string(xml_string: str, root_tag: str) -> Node: ...
0 commit comments