Type Hints

This commit is contained in:
Joel Falknau 2025-03-26 13:27:01 +10:00
parent 7ba1699dc6
commit b02413c30c
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ class ServicesHook:
"""
return ''
def __str__(self):
def __str__(self) -> str:
return self.name or 'Unknown Service Module'
class Urls:

View File

@ -26,7 +26,7 @@ class NameFormatConfig(models.Model):
"formatter for each state for each service."
)
def __str__(self):
def __str__(self) -> str:
return '{}: {}'.format(
self.service_name, ', '.join([str(x) for x in self.states.all()])
)