diff --git a/python/src/io.rs b/python/src/io.rs index 3d066bdd..af49fd5d 100644 --- a/python/src/io.rs +++ b/python/src/io.rs @@ -46,7 +46,7 @@ pub fn add_to_module(module: &PyModule) -> PyResult<()> { /// >>> list(parse(input, "text/turtle", base_iri="http://example.com/")) /// [ predicate= object=>>] #[pyfunction] -#[pyo3(text_signature = "(input, /, mime_type, *, base_iri = None)")] +#[pyo3(text_signature = "(input, mime_type, *, base_iri = None)")] pub fn parse( input: PyObject, mime_type: &str, @@ -117,7 +117,7 @@ pub fn parse( /// >>> output.getvalue() /// b' "1" .\n' #[pyfunction] -#[pyo3(text_signature = "(input, output, /, mime_type)")] +#[pyo3(text_signature = "(input, output, mime_type)")] pub fn serialize(input: &PyAny, output: PyObject, mime_type: &str, py: Python<'_>) -> PyResult<()> { let output = if let Ok(path) = output.extract::<&str>(py) { PyWritable::from_file(path, py) diff --git a/python/src/store.rs b/python/src/store.rs index 062fd1e4..0058d19b 100644 --- a/python/src/store.rs +++ b/python/src/store.rs @@ -278,7 +278,7 @@ impl PyStore { /// >>> store.load(io.BytesIO(b'

"1" .'), "text/turtle", base_iri="http://example.com/", to_graph=NamedNode("http://example.com/g")) /// >>> list(store) /// [ predicate= object=> graph_name=>] - #[pyo3(text_signature = "($self, input, /, mime_type, *, base_iri = None, to_graph = None)")] + #[pyo3(text_signature = "($self, input, mime_type, *, base_iri = None, to_graph = None)")] #[args(input, mime_type, "*", base_iri = "None", to_graph = "None")] fn load( &self, @@ -362,7 +362,7 @@ impl PyStore { /// >>> store.bulk_load(io.BytesIO(b'

"1" .'), "text/turtle", base_iri="http://example.com/", to_graph=NamedNode("http://example.com/g")) /// >>> list(store) /// [ predicate= object=> graph_name=>] - #[pyo3(text_signature = "($self, input, /, mime_type, *, base_iri = None, to_graph = None)")] + #[pyo3(text_signature = "($self, input, mime_type, *, base_iri = None, to_graph = None)")] #[args(input, mime_type, "*", base_iri = "None", to_graph = "None")] fn bulk_load( &self, @@ -442,7 +442,7 @@ impl PyStore { /// >>> store.dump(output, "text/turtle", from_graph=NamedNode("http://example.com/g")) /// >>> output.getvalue() /// b' "1" .\n' - #[pyo3(text_signature = "($self, output, /, mime_type, *, from_graph = None)")] + #[pyo3(text_signature = "($self, output, mime_type, *, from_graph = None)")] #[args(output, mime_type, "*", from_graph = "None")] fn dump( &self,