summaryrefslogtreecommitdiff
path: root/gitlab/__init__.py
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2022-01-15 08:31:00 -0800
committerJohn L. Villalovos <john@sodarock.com>2022-01-15 08:31:00 -0800
commitb981ce7fed88c5d86a3fffc4ee3f99be0b958c1d (patch)
tree9e8e41154f80a3408972cece6fc4328c8186e455 /gitlab/__init__.py
parentcbbe7ce61db0649be286c5c1a239e00ed86f8039 (diff)
downloadgitlab-jlvillal/version_mv.tar.gz
chore: rename `gitlab/__version__.py` -> `gitlab/_version.py`jlvillal/version_mv
It is confusing to have a `gitlab/__version__.py` because we also create a variable `gitlab.__version__` which can conflict with `gitlab/__version__.py`. For example in `gitlab/const.py` we have to know that `gitlab.__version__` is a module and not the variable due to the ordering of imports. But in most other usage `gitlab.__version__` is a version string. To reduce confusion make the name of the version file `gitlab/_version.py`.
Diffstat (limited to 'gitlab/__init__.py')
-rw-r--r--gitlab/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py
index 824f177..5f168ac 100644
--- a/gitlab/__init__.py
+++ b/gitlab/__init__.py
@@ -20,7 +20,7 @@ import warnings
from typing import Any
import gitlab.config # noqa: F401
-from gitlab.__version__ import ( # noqa: F401
+from gitlab._version import ( # noqa: F401
__author__,
__copyright__,
__email__,