Skip to content

Commit

Permalink
Make sure the type is specified so that dataclasses picks it up.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyandrewmeyer committed Jun 7, 2024
1 parent c24748c commit 869a735
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ops/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1812,7 +1812,9 @@ class StatusBase:
_statuses: typing.ClassVar[Dict[str, Type['StatusBase']]] = {}

# Subclasses should override this attribute
name = ''
name: str = ''

message: str = ''

def __init__(self, message: str = ''):
if self.__class__ is StatusBase:
Expand Down

0 comments on commit 869a735

Please sign in to comment.