mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 17:59:52 +00:00
Update Pyright to v1.1.394
This commit is contained in:
@ -21,6 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
from typing import (
|
||||
Any,
|
||||
@ -330,7 +331,9 @@ class BaseSelect(Item[V]):
|
||||
values = selected_values.get({})
|
||||
payload: List[PossibleValue]
|
||||
try:
|
||||
resolved = Namespace._get_resolved_items(interaction, data['resolved'])
|
||||
resolved = Namespace._get_resolved_items(
|
||||
interaction, data['resolved'] # pyright: ignore[reportTypedDictNotRequiredAccess]
|
||||
)
|
||||
payload = list(resolved.values())
|
||||
except KeyError:
|
||||
payload = data.get("values", []) # type: ignore
|
||||
|
@ -177,7 +177,7 @@ class View:
|
||||
children = []
|
||||
for func in self.__view_children_items__:
|
||||
item: Item = func.__discord_ui_model_type__(**func.__discord_ui_model_kwargs__)
|
||||
item.callback = _ViewCallback(func, self, item)
|
||||
item.callback = _ViewCallback(func, self, item) # type: ignore
|
||||
item._view = self
|
||||
setattr(self, func.__name__, item)
|
||||
children.append(item)
|
||||
|
Reference in New Issue
Block a user