Skip to content

Commit 5453c60

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 parent cfc42d2 commit 5453c60

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

gitlab/v4/objects/audit_events.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,29 +43,13 @@ class GroupAuditEventManager(RetrieveMixin, RESTManager):
4343
class ProjectAuditEvent(RESTObject):
4444
_id_attr = "id"
4545

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-
5446

5547
class ProjectAuditEventManager(RetrieveMixin, RESTManager):
5648
_path = "/projects/%(project_id)s/audit_events"
5749
_obj_cls = ProjectAuditEvent
5850
_from_parent_attrs = {"project_id": "id"}
5951
_list_filters = ("created_after", "created_before")
6052

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-
6953

7054
class ProjectAudit(ProjectAuditEvent):
7155
pass

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy