Expose version info (#349)
parent
32d6b6ced9
commit
3ca3fee9ff
|
@ -90,6 +90,8 @@ fn tantivy(_py: Python, m: &Bound<PyModule>) -> PyResult<()> {
|
|||
|
||||
m.add_wrapped(wrap_pymodule!(query_parser_error))?;
|
||||
|
||||
m.add("__version__", tv::version_string())?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
@ -439,3 +439,6 @@ class SnippetGenerator:
|
|||
|
||||
def set_max_num_chars(self, max_num_chars: int) -> None:
|
||||
pass
|
||||
|
||||
__version__: str
|
||||
|
||||
|
|
Loading…
Reference in New Issue