Bump Pyright to 1.1.265, fix type errors, and remove unnecessary ignores

This commit is contained in:
Bryan Forbes
2022-08-04 21:46:02 -05:00
committed by GitHub
parent 60079aee1b
commit d707019348
14 changed files with 30 additions and 30 deletions

View File

@ -822,7 +822,7 @@ def create_activity(data: Optional[ActivityPayload], state: ConnectionState) ->
return Game(**data)
elif game_type is ActivityType.custom:
try:
name = data.pop('name')
name = data.pop('name') # type: ignore
except KeyError:
ret = Activity(**data)
else: