소스 검색

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,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 파일 보기

@@ -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.

Loading…
취소
저장