Procházet zdrojové kódy

ok fine you cant annotate class methods with its own class type sheesh

master
Rocketsoup před 4 roky
rodič
revize
31d942b72c
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1
    1
      rocketbot/botmessage.py
  2. 1
    1
      rocketbot/cogsetting.py

+ 1
- 1
rocketbot/botmessage.py Zobrazit soubor

@@ -45,7 +45,7 @@ class BotMessageReaction:
45 45
 			message_count: int = 1,
46 46
 			did_kick: bool = None,
47 47
 			did_ban: bool = None,
48
-			user_count: int = 1) -> list[BotMessageReaction]:
48
+			user_count: int = 1) -> list: # list[BotMessageReaction]:
49 49
 		"""
50 50
 		Convenience factory for generating any of the three most common
51 51
 		commands: delete message(s), kick user(s), and ban user(s). All

+ 1
- 1
rocketbot/cogsetting.py Zobrazit soubor

@@ -221,7 +221,7 @@ class CogSetting:
221 221
 		return command
222 222
 
223 223
 	@classmethod
224
-	def set_up_all(cls, cog: Cog, bot: Bot, settings: list[CogSetting]) -> None:
224
+	def set_up_all(cls, cog: Cog, bot: Bot, settings: list) -> None:
225 225
 		"""
226 226
 		Sets up editing commands for a list of CogSettings and adds them to a
227 227
 		cog. If the cog has a command Group, commands will be added to it.

Načítá se…
Zrušit
Uložit