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

Commitd6870a9

Browse files
chore: enable pylint check: "attribute-defined-outside-init"
Enable the pylint check: "attribute-defined-outside-init" and fixerrors detected.
1 parent1a2781e commitd6870a9

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

‎gitlab/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ def __init__(
123123

124124
objects=gitlab.v4.objects
125125
self._objects=objects
126+
self.user:Optional[objects.CurrentUser]=None
126127

127128
self.broadcastmessages=objects.BroadcastMessageManager(self)
128129
"""See :class:`~gitlab.v4.objects.BroadcastMessageManager`"""

‎gitlab/v4/objects/files.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
classProjectFile(SaveMixin,ObjectDeleteMixin,RESTObject):
2727
_id_attr="file_path"
2828
_repr_attr="file_path"
29+
branch:str
30+
commit_message:str
2931
file_path:str
3032
manager:"ProjectFileManager"
3133

‎gitlab/v4/objects/merge_request_approvals.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ class ProjectMergeRequestApprovalRule(SaveMixin, ObjectDeleteMixin, RESTObject):
168168
_id_attr="approval_rule_id"
169169
_repr_attr="approval_rule"
170170
id:int
171+
approval_rule_id:int
172+
merge_request_iid:int
171173

172174
@exc.on_http_error(exc.GitlabUpdateError)
173175
defsave(self,**kwargs:Any)->None:

‎pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ max-line-length = 88
4949
disable = [
5050
"arguments-differ",
5151
"arguments-renamed",
52-
"attribute-defined-outside-init",
5352
"broad-except",
5453
"cyclic-import",
5554
"duplicate-code",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp