From b02413c30ce12bd0fa7796767d6f723d3bd6e5c1 Mon Sep 17 00:00:00 2001 From: Joel Falknau Date: Wed, 26 Mar 2025 13:27:01 +1000 Subject: [PATCH] Type Hints --- allianceauth/services/hooks.py | 2 +- allianceauth/services/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/allianceauth/services/hooks.py b/allianceauth/services/hooks.py index 108932f9..a2da7827 100644 --- a/allianceauth/services/hooks.py +++ b/allianceauth/services/hooks.py @@ -119,7 +119,7 @@ class ServicesHook: """ return '' - def __str__(self): + def __str__(self) -> str: return self.name or 'Unknown Service Module' class Urls: diff --git a/allianceauth/services/models.py b/allianceauth/services/models.py index 9bd1117b..87c3aa43 100644 --- a/allianceauth/services/models.py +++ b/allianceauth/services/models.py @@ -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()]) )