mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Update to pyright 1.1.242
This commit is contained in:
1 parent
8be103d6bb
commit
5536ef1eea
7 files changed
+23
-27
No files matched your search
@@ -1004,7 +1004,8 @@ class CommandTree(Generic[ClientT]):
|
||||
|
||||
resolved = Namespace._get_resolved_items(interaction, data.get('resolved', {}))
|
||||
|
||||
target_id = data.get('target_id')
|
||||
# This is annotated as str | int but realistically this will always be str
|
||||
target_id: Optional[Union[str, int]] = data.get('target_id')
|
||||
# Right now, the only types are message and user
|
||||
# Therefore, there's no conflict with snowflakes
|
||||
|
||||
|
||||
Reference in new issue
Block a user