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

Appearance settings

Commit d6870a9

Browse filesBrowse files
chore: enable pylint check: "attribute-defined-outside-init"
Enable the pylint check: "attribute-defined-outside-init" and fix errors detected.
1 parent 1a2781e commit d6870a9
Copy full SHA for d6870a9

File tree

Expand file treeCollapse file tree

4 files changed

+5
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

4 files changed

+5
-1
lines changed
Open diff view settings
Collapse file

‎gitlab/client.py‎

Copy file name to clipboardExpand all lines: gitlab/client.py
+1Lines 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`"""
Collapse file

‎gitlab/v4/objects/files.py‎

Copy file name to clipboardExpand all lines: gitlab/v4/objects/files.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
class ProjectFile(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

Collapse file

‎gitlab/v4/objects/merge_request_approvals.py‎

Copy file name to clipboardExpand all lines: gitlab/v4/objects/merge_request_approvals.py
+2Lines 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
def save(self, **kwargs: Any) -> None:
Collapse file

‎pyproject.toml‎

Copy file name to clipboardExpand all lines: pyproject.toml
-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.