-
Notifications
You must be signed in to change notification settings - Fork 674
Open
Labels
Description
Description of the problem, including code/CLI snippet
Doing import gitlab (assuming it's the main way of using this) triggers "notices" when trying to use e.g. gitlab.const.AccessLevel.DEVELOPER
I assume the reason is
python-gitlab/gitlab/__init__.py
Lines 35 to 47 in 84ad3fd
| __all__ = [ | |
| "__author__", | |
| "__copyright__", | |
| "__email__", | |
| "__license__", | |
| "__title__", | |
| "__version__", | |
| "Gitlab", | |
| "GitlabList", | |
| "AsyncGraphQL", | |
| "GraphQL", | |
| ] | |
| __all__.extend(gitlab.exceptions.__all__) |
Expected Behavior
Typing
import gitlab
gitlab.const.AccessLevel.DEVELOPERdoes not raise issues.
from gitlab import Gitlab, const works
Actual Behavior
Cannot find reference 'const' in 'gitlab'
Specifications
- python-gitlab version: 8
- Gitlab server version (or gitlab.com):
Reactions are currently unavailable