Skip to content

Commit

Permalink
refactor: add package version alias and update module exports
Browse files Browse the repository at this point in the history
- Add `version` alias to import `_version` module
- Update `__all__` in factory module to use a tuple instead of list
  • Loading branch information
Liu Xue Yan committed Dec 20, 2024
1 parent f1abfcd commit e69f941
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/sqlalchemy_dlock/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Distributed lock based on Database and SQLAlchemy
"""

from . import _version as version
from ._version import __version__, __version_tuple__
from .exceptions import SqlAlchemyDLockBaseException, SqlAlchemyDLockDatabaseError
from .factory import create_async_sadlock, create_sadlock
Expand Down
2 changes: 1 addition & 1 deletion src/sqlalchemy_dlock/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .lock.base import AsyncConnT, BaseAsyncSadLock, BaseSadLock, ConnT
from .registry import find_lock_class

__all__ = ["create_sadlock", "create_async_sadlock"]
__all__ = ("create_sadlock", "create_async_sadlock")


KTV = TypeVar("KTV")
Expand Down

0 comments on commit e69f941

Please sign in to comment.