Skip to content

Commit

Permalink
chore(pyi): fixing the search function and SearchType definition
Browse files Browse the repository at this point in the history
  • Loading branch information
nephi-dev committed Dec 18, 2024
1 parent 3a38ec6 commit 7c4db12
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rxml"
version = "2.1.1"
version = "2.1.2"
edition = "2021"

[lib]
Expand Down
10 changes: 6 additions & 4 deletions rxml.pyi
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from enum import Enum

class SearchType(Enum):
tag: str
attr: str
text: str
Tag: str
Attr: str
Text: str

class Node:
name: str
Expand All @@ -21,7 +21,9 @@ class Node:
def __to_string(self, spacing: int | None) -> str: ...
def __str__(self) -> str: ...
def __repr__(self) -> str: ...
def search(self, by: str, value: str, depth: int | None = None) -> list[Node]: ...
def search(
self, by: SearchType, value: str, depth: int | None = None
) -> list[Node]: ...

def read_file(file_path: str, root_tag: str) -> Node: ...
def read_string(xml_string: str, root_tag: str) -> Node: ...
Expand Down

0 comments on commit 7c4db12

Please sign in to comment.