Skip to content

Commit 1675b53

Browse files
committed
Fix incorrect default value in docstrings for strict argument
1 parent 7f8baa3 commit 1675b53

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

selectolax/lexbor.pyi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class LexborNode:
173173
query : str
174174
default : bool, default None
175175
Default value to return if there is no match.
176-
strict: bool, default True
176+
strict: bool, default False
177177
Set to True if you want to check if there is strictly only one match in the document.
178178
179179
@@ -194,7 +194,7 @@ class LexborNode:
194194
query : str
195195
default : bool, default None
196196
Default value to return if there is no match.
197-
strict: bool, default True
197+
strict: bool, default False
198198
Set to True if you want to check if there is strictly only one match in the document.
199199
200200
@@ -215,7 +215,7 @@ class LexborNode:
215215
query : str
216216
default : bool, default None
217217
Default value to return if there is no match.
218-
strict: bool, default True
218+
strict: bool, default False
219219
Set to True if you want to check if there is strictly only one match in the document.
220220
221221
@@ -699,7 +699,7 @@ class LexborHTMLParser:
699699
query : str
700700
default : bool, default None
701701
Default value to return if there is no match.
702-
strict: bool, default True
702+
strict: bool, default False
703703
Set to True if you want to check if there is strictly only one match in the document.
704704
705705
@@ -720,7 +720,7 @@ class LexborHTMLParser:
720720
query : str
721721
default : bool, default None
722722
Default value to return if there is no match.
723-
strict: bool, default True
723+
strict: bool, default False
724724
Set to True if you want to check if there is strictly only one match in the document.
725725
726726
@@ -741,7 +741,7 @@ class LexborHTMLParser:
741741
query : str
742742
default : bool, default None
743743
Default value to return if there is no match.
744-
strict: bool, default True
744+
strict: bool, default False
745745
Set to True if you want to check if there is strictly only one match in the document.
746746
747747

selectolax/lexbor.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ cdef class LexborHTMLParser:
194194
query : str
195195
default : Any, default None
196196
Default value to return if there is no match.
197-
strict: bool, default True
197+
strict: bool, default False
198198
Set to True if you want to check if there is strictly only one match in the document.
199199
200200
@@ -211,7 +211,7 @@ cdef class LexborHTMLParser:
211211
----------
212212
tags : list of str
213213
List of tags to remove.
214-
recursive : bool, default True
214+
recursive : bool, default False
215215
Whenever to delete all its child nodes
216216
217217
Examples

selectolax/lexbor/node.pxi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ cdef class LexborNode:
206206
query : str
207207
default : Any, default None
208208
Default value to return if there is no match.
209-
strict: bool, default True
209+
strict: bool, default False
210210
Set to True if you want to check if there is strictly only one match in the document.
211211
212212

selectolax/parser.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ class HTMLParser:
588588
query : str
589589
default : bool, default None
590590
Default value to return if there is no match.
591-
strict: bool, default True
591+
strict: bool, default False
592592
Set to True if you want to check if there is strictly only one match in the document.
593593
594594

selectolax/parser.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ cdef class HTMLParser:
7474
query : str
7575
default : Any, default None
7676
Default value to return if there is no match.
77-
strict: bool, default True
77+
strict: bool, default False
7878
Set to True if you want to check if there is strictly only one match in the document.
7979
8080

0 commit comments

Comments
 (0)