Skip to content

Commit

Permalink
Fix: typo in type annotations. Fixes #147.
Browse files Browse the repository at this point in the history
  • Loading branch information
rushter committed Dec 15, 2024
1 parent b568aea commit 90daa6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
selectolax Changelog
====================


- Fix: typo in type annotations. Fixes #147.

Version 0.3.27
-------------

Expand Down
4 changes: 2 additions & 2 deletions selectolax/parser.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ class Selector:
) -> bool:
"""Returns True if any node in the current search scope contains specified text"""
...
def attribute_long_than(
def attribute_longer_than(
self, text: str, length: int, start: str | None = None
) -> Selector:
"""Filter all current matches by attribute length.
Similar to string-length in XPath."""
...
def any_attribute_long_than(
def attribute_longer_than(
self, text: str, length: int, start: str | None = None
) -> bool:
"""Returns True any href attribute longer than a specified length.
Expand Down

0 comments on commit 90daa6b

Please sign in to comment.