Expose version info (#349)

master
Cameron 2024-09-23 18:42:20 +10:00 committed by GitHub
parent 32d6b6ced9
commit 3ca3fee9ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -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(())
}

View File

@ -439,3 +439,6 @@ class SnippetGenerator:
def set_max_num_chars(self, max_num_chars: int) -> None:
pass
__version__: str