Typehint ProtocolUrl methods

This commit is contained in:
Chiggy-Playz 2021-10-17 00:41:20 +05:30
parent 64ff807309
commit 2cc9d7b46c

View File

@ -651,10 +651,10 @@ class ProtocolUrl(Enum):
games_library = "discord://-/library"
library_settings = "discord://-/library/settings"
def __str__(self):
def __str__(self) -> str:
return self.value
def format(self, **kwargs):
def format(self, **kwargs) -> str:
return self.value.format(**kwargs)