Skip to content

Commit 418a5ea

Browse files
author
Toni
committed
solving circular import
1 parent a8545b1 commit 418a5ea

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

pylsp/__init__.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@
22
# Copyright 2021- Python Language Server Contributors.
33

44
import os
5-
65
import pluggy
76

7+
PYLSP = "pylsp"
8+
IS_WIN = os.name == "nt"
9+
10+
hookspec = pluggy.HookspecMarker(PYLSP)
11+
hookimpl = pluggy.HookimplMarker(PYLSP)
12+
813
from . import _version
9-
from ._version import __version__
14+
__version__ = _version.__version__
1015

1116

1217
def convert_version_info(version: str) -> (int, ..., str):
@@ -24,10 +29,4 @@ def convert_version_info(version: str) -> (int, ..., str):
2429

2530
_version.VERSION_INFO = convert_version_info(__version__)
2631

27-
PYLSP = "pylsp"
28-
IS_WIN = os.name == "nt"
29-
30-
hookspec = pluggy.HookspecMarker(PYLSP)
31-
hookimpl = pluggy.HookimplMarker(PYLSP)
32-
3332
__all__ = ("__version__",)

0 commit comments

Comments
 (0)