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

Commit2953642

Browse files
committed
chore(objects): remove noisy deprecation warning for audit events
It's mostly an internal thing anyway and can be removed in 3.0.0
1 parentcfc42d2 commit2953642

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

‎gitlab/v4/objects/audit_events.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
GitLab API:
33
https://docs.gitlab.com/ee/api/audit_events.html
44
"""
5-
importwarnings
6-
75
fromgitlab.baseimportRESTManager,RESTObject
86
fromgitlab.mixinsimportRetrieveMixin
97

@@ -43,29 +41,13 @@ class GroupAuditEventManager(RetrieveMixin, RESTManager):
4341
classProjectAuditEvent(RESTObject):
4442
_id_attr="id"
4543

46-
def__init_subclass__(self):
47-
warnings.warn(
48-
"This class has been renamed to ProjectAuditEvent "
49-
"and will be removed in a future release.",
50-
DeprecationWarning,
51-
2,
52-
)
53-
5444

5545
classProjectAuditEventManager(RetrieveMixin,RESTManager):
5646
_path="/projects/%(project_id)s/audit_events"
5747
_obj_cls=ProjectAuditEvent
5848
_from_parent_attrs= {"project_id":"id"}
5949
_list_filters= ("created_after","created_before")
6050

61-
def__init_subclass__(self):
62-
warnings.warn(
63-
"This class has been renamed to ProjectAuditEventManager "
64-
"and will be removed in a future release.",
65-
DeprecationWarning,
66-
2,
67-
)
68-
6951

7052
classProjectAudit(ProjectAuditEvent):
7153
pass

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp