GeezerVison is showing github.com — chore(gitlab): fix implicit re-exports for mpypy · python-gitlab/python-gitlab@981b844
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: gitlab/__init__.py +14Lines changed: 14 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -51,3 +51,17 @@ def __getattr__(name: str) -> Any: |
51 | 51 | ) |
52 | 52 | return getattr(gitlab.const, name) |
53 | 53 | raise AttributeError(f"module {__name__} has no attribute {name}") |
| 54 | + |
| 55 | + |
| 56 | +__all__ = [ |
| 57 | + "__author__", |
| 58 | + "__copyright__", |
| 59 | + "__email__", |
| 60 | + "__license__", |
| 61 | + "__title__", |
| 62 | + "__version__", |
| 63 | + "Gitlab", |
| 64 | + "GitlabList", |
| 65 | +] |
| 66 | +__all__.extend(gitlab.const._DEPRECATED) |
| 67 | +__all__.extend(gitlab.exceptions.__all__) |
Collapse file
Copy file name to clipboardExpand all lines: gitlab/const.py +8Lines changed: 8 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -143,3 +143,11 @@ class SearchScope(Enum): |
143 | 143 | SEARCH_SCOPE_PROJECT_NOTES = SearchScope.PROJECT_NOTES.value |
144 | 144 |
|
145 | 145 | USER_AGENT: str = f"{__title__}/{__version__}" |
| 146 | + |
| 147 | +__all__ = [ |
| 148 | + "AccessLevel", |
| 149 | + "Visibility", |
| 150 | + "NotificationLevel", |
| 151 | + "SearchScope", |
| 152 | +] |
| 153 | +__all__.extend(_DEPRECATED) |
Collapse file
Copy file name to clipboardExpand all lines: gitlab/exceptions.py +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -322,3 +322,6 @@ def wrapped_f(*args: Any, **kwargs: Any) -> Any: |
322 | 322 | return cast(__F, wrapped_f) |
323 | 323 |
|
324 | 324 | return wrap |
| 325 | + |
| 326 | + |
| 327 | +__all__ = [name for name in dir() if name.endswith("Error")] |
Collapse file
Copy file name to clipboardExpand all lines: pyproject.toml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -21,7 +21,7 @@ warn_unused_ignores = true |
21 | 21 | # disallow_any_generics = true |
22 | 22 | # disallow_untyped_calls = true |
23 | 23 | # no_implicit_optional = true |
24 | | -# no_implicit_reexport = true |
| 24 | +no_implicit_reexport = true |
25 | 25 | # strict_equality = true |
26 | 26 | # warn_return_any = true |
27 | 27 |
|
|