From 2cc9d7b46cf02772aead1f06586269b24f8b2c20 Mon Sep 17 00:00:00 2001 From: Chiggy-Playz Date: Sun, 17 Oct 2021 00:41:20 +0530 Subject: [PATCH] Typehint ProtocolUrl methods --- discord/enums.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/enums.py b/discord/enums.py index f4a17bbc..0e66fb95 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -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)