@@ -83,7 +83,7 @@ struct StylesheetCache {
8383#[ pymethods]
8484impl StylesheetCache {
8585 #[ new]
86- #[ pyo3( text_signature = " (size=8)" ) ]
86+ #[ pyo3( signature = ( size) ) ]
8787 fn new ( size : Option < & Bound < ' _ , PyAny > > ) -> PyResult < Self > {
8888 let size = if let Some ( size) = size {
8989 const ERROR_MESSAGE : & str = "Cache size must be an integer greater than zero" ;
@@ -135,7 +135,7 @@ macro_rules! inliner {
135135impl CSSInliner {
136136 #[ new]
137137 #[ pyo3(
138- text_signature = " (inline_style_tags=True , keep_style_tags=False , keep_link_tags=False , base_url=None, load_remote_stylesheets=True , cache=None, extra_css=None, preallocate_node_capacity=32)"
138+ signature = ( inline_style_tags=true , keep_style_tags=false , keep_link_tags=false , base_url=None , load_remote_stylesheets=true , cache=None , extra_css=None , preallocate_node_capacity=32 )
139139 ) ]
140140 #[ allow( clippy:: too_many_arguments) ]
141141 fn new (
@@ -206,7 +206,7 @@ impl CSSInliner {
206206/// Inline CSS in the given HTML document
207207#[ pyfunction]
208208#[ pyo3(
209- text_signature = " (html, inline_style_tags=True , keep_style_tags=False , keep_link_tags=False , base_url=None, load_remote_stylesheets=True , cache=None, extra_css=None, preallocate_node_capacity=32)"
209+ signature = ( html, inline_style_tags=true , keep_style_tags=false , keep_link_tags=false , base_url=None , load_remote_stylesheets=true , cache=None , extra_css=None , preallocate_node_capacity=32 )
210210) ]
211211#[ allow( clippy:: too_many_arguments) ]
212212fn inline (
@@ -238,7 +238,7 @@ fn inline(
238238/// Inline CSS in the given HTML fragment
239239#[ pyfunction]
240240#[ pyo3(
241- text_signature = " (html, css, inline_style_tags=True , keep_style_tags=False , keep_link_tags=False , base_url=None, load_remote_stylesheets=True , cache=None, extra_css=None, preallocate_node_capacity=32)"
241+ signature = ( html, css, inline_style_tags=true , keep_style_tags=false , keep_link_tags=false , base_url=None , load_remote_stylesheets=true , cache=None , extra_css=None , preallocate_node_capacity=32 )
242242) ]
243243#[ allow( clippy:: too_many_arguments) ]
244244fn inline_fragment (
@@ -273,7 +273,7 @@ fn inline_fragment(
273273/// Inline CSS in multiple HTML documents
274274#[ pyfunction]
275275#[ pyo3(
276- text_signature = " (htmls, inline_style_tags=True , keep_style_tags=False , keep_link_tags=False , base_url=None, load_remote_stylesheets=True , cache=None, extra_css=None, preallocate_node_capacity=32)"
276+ signature = ( htmls, inline_style_tags=true , keep_style_tags=false , keep_link_tags=false , base_url=None , load_remote_stylesheets=true , cache=None , extra_css=None , preallocate_node_capacity=32 )
277277) ]
278278#[ allow( clippy:: too_many_arguments) ]
279279fn inline_many (
@@ -318,7 +318,7 @@ fn inline_many_impl(
318318/// Inline CSS in multiple HTML fragments
319319#[ pyfunction]
320320#[ pyo3(
321- text_signature = " (htmls, css, inline_style_tags=True , keep_style_tags=False , keep_link_tags=False , base_url=None, load_remote_stylesheets=True , cache=None, extra_css=None, preallocate_node_capacity=32)"
321+ signature = ( htmls, css, inline_style_tags=true , keep_style_tags=false , keep_link_tags=false , base_url=None , load_remote_stylesheets=true , cache=None , extra_css=None , preallocate_node_capacity=32 )
322322) ]
323323#[ allow( clippy:: too_many_arguments) ]
324324fn inline_many_fragments (
0 commit comments