mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 04:20:17 +02:00
Type Hints
This commit is contained in:
parent
7ba1699dc6
commit
b02413c30c
@ -119,7 +119,7 @@ class ServicesHook:
|
||||
"""
|
||||
return ''
|
||||
|
||||
def __str__(self):
|
||||
def __str__(self) -> str:
|
||||
return self.name or 'Unknown Service Module'
|
||||
|
||||
class Urls:
|
||||
|
@ -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()])
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user