Skip to content

Commit 9b48767

Browse files
Add __version__ to __all__ exports
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8ebbe1a commit 9b48767

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/dqlitedbapi/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141

4242
__all__ = [
4343
# Module attributes
44+
"__version__",
4445
"apilevel",
4546
"threadsafety",
4647
"paramstyle",

tests/test_version_export.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
"""Test that __version__ is in __all__."""
2+
3+
import dqlitedbapi
4+
5+
6+
class TestVersionExport:
7+
def test_version_in_all(self) -> None:
8+
assert "__version__" in dqlitedbapi.__all__
9+
10+
def test_version_is_string(self) -> None:
11+
assert isinstance(dqlitedbapi.__version__, str)

0 commit comments

Comments
 (0)