Skip to content

Commit 55a3bc6

Browse files
committed
changed as per github-advanced-security comments
1 parent 876bf76 commit 55a3bc6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

linode_api4/objects/monitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from dataclasses import dataclass, field
2-
from typing import List, Literal, Optional, Union
2+
from typing import List, Optional, Union
33

44
from linode_api4.objects import DerivedBase
55
from linode_api4.objects.base import Base, Property

test/integration/models/monitor/test_monitor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ def test_integration_create_get_update_delete_alert_definition(
217217
# If no exception, fail explicitly
218218
assert False, "Alert definition still retrievable after delete"
219219
except ApiError:
220-
# expected
220+
# Expected: alert definition is deleted and API returns 404 or similar error
221221
pass
222222
except Exception:
223-
# any other exception is acceptable here
223+
# Any other exception is acceptable here, as the resource should be gone
224224
pass

0 commit comments

Comments
 (0)