diff options
author | John L. Villalovos <john@sodarock.com> | 2022-01-03 22:11:46 -0800 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2022-01-03 22:11:46 -0800 |
commit | 6b3e7c0f5f77baed94cc807b7087feaaf0fac121 (patch) | |
tree | a9d8d3b3f04b072e6707f775861e1835e94afc8d /gitlab/config.py | |
parent | 789122d5df9b4f39331e23c7fdb6e9021e7836cf (diff) | |
download | gitlab-jlvillal/relative_imports.tar.gz |
chore: convert to using relative importsjlvillal/relative_imports
Switch to using relative imports to ensure that we are importing from
within our library.
Also use the form:
from foo import bar as bar
When we want to signify that we want the import to be re-exported.
https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-no-implicit-reexport
Diffstat (limited to 'gitlab/config.py')
-rw-r--r-- | gitlab/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/config.py b/gitlab/config.py index c11a4e9..290af88 100644 --- a/gitlab/config.py +++ b/gitlab/config.py @@ -23,7 +23,7 @@ from os.path import expanduser, expandvars from pathlib import Path from typing import List, Optional, Union -from gitlab.const import USER_AGENT +from .const import USER_AGENT _DEFAULT_FILES: List[str] = [ "/etc/python-gitlab.cfg", |