diff options
| author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-25 11:35:23 +0200 |
|---|---|---|
| committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-25 11:40:00 +0200 |
| commit | 2f42e932b38e27a43cbce45bbe04a56e4a0b37f7 (patch) | |
| tree | 5940cf19e23ec7ae8f828d033f8442189803acf6 | |
| parent | 388ed4c70488ba37ba1f73423ab4a9432a13a530 (diff) | |
| download | astroid-git-2f42e932b38e27a43cbce45bbe04a56e4a0b37f7.tar.gz | |
Retrocompatibility with old version of pylint
Closes https://github.com/PyCQA/pylint/issues/4402
| -rw-r--r-- | astroid/__init__.py | 2 | ||||
| -rw-r--r-- | astroid/__pkginfo__.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/astroid/__init__.py b/astroid/__init__.py index 59c5b468..f48cdcc4 100644 --- a/astroid/__init__.py +++ b/astroid/__init__.py @@ -47,7 +47,7 @@ from pathlib import Path import wrapt -from .__pkginfo__ import __version__ +from .__pkginfo__ import __version__, version _Context = enum.Enum("Context", "Load Store Del") Load = _Context.Load diff --git a/astroid/__pkginfo__.py b/astroid/__pkginfo__.py index 715f7579..92b17e24 100644 --- a/astroid/__pkginfo__.py +++ b/astroid/__pkginfo__.py @@ -38,3 +38,5 @@ if dev_version is not None: __version__ += f"a{dev_version}" else: __version__ += f".dev{dev_version}" + +version = __version__ |
