ソースを参照

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

master
Rocketsoup 4年前
コミット
31d942b72c
2個のファイルの変更2行の追加2行の削除
  1. 1
    1
      rocketbot/botmessage.py
  2. 1
    1
      rocketbot/cogsetting.py

+ 1
- 1
rocketbot/botmessage.py ファイルの表示

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

+ 1
- 1
rocketbot/cogsetting.py ファイルの表示

221
 		return command
221
 		return command
222
 
222
 
223
 	@classmethod
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
 		Sets up editing commands for a list of CogSettings and adds them to a
226
 		Sets up editing commands for a list of CogSettings and adds them to a
227
 		cog. If the cog has a command Group, commands will be added to it.
227
 		cog. If the cog has a command Group, commands will be added to it.

読み込み中…
キャンセル
保存