Remove View.from_dict typing

This commit is contained in:
Rapptz 2025-08-18 15:00:42 -04:00
parent fc12a41cdf
commit 5d49f11709

View File

@ -688,10 +688,6 @@ class View(BaseView):
if TYPE_CHECKING:
@classmethod
def from_dict(cls, data: List[ComponentPayload], *, timeout: Optional[float] = 180.0) -> View:
...
@classmethod
def from_message(cls, message: Message, /, *, timeout: Optional[float] = 180.0) -> View:
...
@ -786,10 +782,6 @@ class LayoutView(BaseView):
if TYPE_CHECKING:
@classmethod
def from_dict(cls, data: List[ComponentPayload], *, timeout: Optional[float] = 180.0) -> LayoutView:
...
@classmethod
def from_message(cls, message: Message, /, *, timeout: Optional[float] = 180.0) -> LayoutView:
...