mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Make Request class a generic container
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
import struct
|
||||
from typing import Generic, TypeVar
|
||||
|
||||
Return = TypeVar("Return")
|
||||
|
||||
|
||||
class Request(bytes):
|
||||
class Request(bytes, Generic[Return]):
|
||||
__slots__ = ()
|
||||
|
||||
@property
|
||||
|
Reference in New Issue
Block a user