Skip to content

Commit ccfcf70

Browse files
committed
Specify return types in Cython
1 parent cc8d811 commit ccfcf70

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

selectolax/lexbor.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ cdef class LexborHTMLParser:
388388
self.root.unwrap_tags(tags, delete_empty=delete_empty)
389389

390390
@property
391-
def inner_html(self):
391+
def inner_html(self) -> str:
392392
"""Return HTML representation of the child nodes.
393393

394394
Works similar to innerHTML in JavaScript.

selectolax/lexbor/node.pxi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ cdef class LexborNode:
894894
return container.text
895895

896896
@property
897-
def inner_html(self):
897+
def inner_html(self) -> str:
898898
"""Return HTML representation of the child nodes.
899899

900900
Works similar to innerHTML in JavaScript.

0 commit comments

Comments
 (0)