Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit981b844

Browse files
nejchJohnVillalovos
authored andcommitted
chore(gitlab): fix implicit re-exports for mpypy
1 parentf0ac3cd commit981b844

File tree

4 files changed

+26
-1
lines changed

4 files changed

+26
-1
lines changed

‎gitlab/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,17 @@ def __getattr__(name: str) -> Any:
5151
)
5252
returngetattr(gitlab.const,name)
5353
raiseAttributeError(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__)

‎gitlab/const.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,11 @@ class SearchScope(Enum):
143143
SEARCH_SCOPE_PROJECT_NOTES=SearchScope.PROJECT_NOTES.value
144144

145145
USER_AGENT:str=f"{__title__}/{__version__}"
146+
147+
__all__= [
148+
"AccessLevel",
149+
"Visibility",
150+
"NotificationLevel",
151+
"SearchScope",
152+
]
153+
__all__.extend(_DEPRECATED)

‎gitlab/exceptions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,3 +322,6 @@ def wrapped_f(*args: Any, **kwargs: Any) -> Any:
322322
returncast(__F,wrapped_f)
323323

324324
returnwrap
325+
326+
327+
__all__= [namefornameindir()ifname.endswith("Error")]

‎pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ warn_unused_ignores = true
2121
# disallow_any_generics = true
2222
# disallow_untyped_calls = true
2323
# no_implicit_optional = true
24-
#no_implicit_reexport = true
24+
no_implicit_reexport =true
2525
# strict_equality = true
2626
# warn_return_any = true
2727

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp