@@ -83,7 +83,7 @@ struct StylesheetCache {
83
83
#[ pymethods]
84
84
impl StylesheetCache {
85
85
#[ new]
86
- #[ pyo3( text_signature = " (size=8)" ) ]
86
+ #[ pyo3( signature = ( size) ) ]
87
87
fn new ( size : Option < & Bound < ' _ , PyAny > > ) -> PyResult < Self > {
88
88
let size = if let Some ( size) = size {
89
89
const ERROR_MESSAGE : & str = "Cache size must be an integer greater than zero" ;
@@ -135,7 +135,7 @@ macro_rules! inliner {
135
135
impl CSSInliner {
136
136
#[ new]
137
137
#[ 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 )
139
139
) ]
140
140
#[ allow( clippy:: too_many_arguments) ]
141
141
fn new (
@@ -206,7 +206,7 @@ impl CSSInliner {
206
206
/// Inline CSS in the given HTML document
207
207
#[ pyfunction]
208
208
#[ 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 )
210
210
) ]
211
211
#[ allow( clippy:: too_many_arguments) ]
212
212
fn inline (
@@ -238,7 +238,7 @@ fn inline(
238
238
/// Inline CSS in the given HTML fragment
239
239
#[ pyfunction]
240
240
#[ 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 )
242
242
) ]
243
243
#[ allow( clippy:: too_many_arguments) ]
244
244
fn inline_fragment (
@@ -273,7 +273,7 @@ fn inline_fragment(
273
273
/// Inline CSS in multiple HTML documents
274
274
#[ pyfunction]
275
275
#[ 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 )
277
277
) ]
278
278
#[ allow( clippy:: too_many_arguments) ]
279
279
fn inline_many (
@@ -318,7 +318,7 @@ fn inline_many_impl(
318
318
/// Inline CSS in multiple HTML fragments
319
319
#[ pyfunction]
320
320
#[ 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 )
322
322
) ]
323
323
#[ allow( clippy:: too_many_arguments) ]
324
324
fn inline_many_fragments (
0 commit comments