Skip to content

Commit 7c4db12

Browse files
committed
chore(pyi): fixing the search function and SearchType definition
1 parent 3a38ec6 commit 7c4db12

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rxml"
3-
version = "2.1.1"
3+
version = "2.1.2"
44
edition = "2021"
55

66
[lib]

rxml.pyi

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from enum import Enum
22

33
class SearchType(Enum):
4-
tag: str
5-
attr: str
6-
text: str
4+
Tag: str
5+
Attr: str
6+
Text: str
77

88
class Node:
99
name: str
@@ -21,7 +21,9 @@ class Node:
2121
def __to_string(self, spacing: int | None) -> str: ...
2222
def __str__(self) -> str: ...
2323
def __repr__(self) -> str: ...
24-
def search(self, by: str, value: str, depth: int | None = None) -> list[Node]: ...
24+
def search(
25+
self, by: SearchType, value: str, depth: int | None = None
26+
) -> list[Node]: ...
2527

2628
def read_file(file_path: str, root_tag: str) -> Node: ...
2729
def read_string(xml_string: str, root_tag: str) -> Node: ...

0 commit comments

Comments
 (0)