Skip to content

Commit 3a03afe

Browse files
committed
Remove prefixes from Event enum values
This is a breaking change, but the v0.3.5 release is not yet used, so we will yank it from PyPI and release this as v0.3.6. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 69b4682 commit 3a03afe

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Summary
44

5+
This is the same release as v0.3.5 but with prefixes in `Event` enum values removed. The v0.3.5 release will be yanked from PyPI and it should not be used.
56

67
## Upgrading
78

src/frequenz/client/common/streaming/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
class Event(Enum):
1414
"""Enum representing the type of streaming event."""
1515

16-
EVENT_UNSPECIFIED = PBEvent.EVENT_UNSPECIFIED
16+
UNSPECIFIED = PBEvent.EVENT_UNSPECIFIED
1717
"""Unspecified event type."""
1818

19-
EVENT_CREATED = PBEvent.EVENT_CREATED
19+
CREATED = PBEvent.EVENT_CREATED
2020
"""Event when a new resource is created."""
2121

22-
EVENT_UPDATED = PBEvent.EVENT_UPDATED
22+
UPDATED = PBEvent.EVENT_UPDATED
2323
"""Event when an existing resource is updated."""
2424

25-
EVENT_DELETED = PBEvent.EVENT_DELETED
25+
DELETED = PBEvent.EVENT_DELETED
2626
"""Event when a resource is deleted."""

0 commit comments

Comments
 (0)