Skip to content

Commit 3d85221

Browse files
committed
add lib version support
1 parent 9118d4a commit 3d85221

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

lsp_types/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
from .requests import * # noqa: F401, F403
22
from .session import * # noqa: F401, F403
33
from .types import * # noqa: F401, F403
4+
5+
import importlib.metadata
6+
7+
try:
8+
__version__ = importlib.metadata.version("lsp-types")
9+
except Exception:
10+
__version__ = "0.0.0" # Fallback for development

0 commit comments

Comments
 (0)