Make Request class a generic container

This commit is contained in:
Lonami Exo
2023-08-31 10:34:36 +02:00
parent 8f89dbb5c2
commit 84e14c2ec4
2 changed files with 8 additions and 4 deletions

View File

@@ -1,7 +1,10 @@
import struct
from typing import Generic, TypeVar
Return = TypeVar("Return")
class Request(bytes):
class Request(bytes, Generic[Return]):
__slots__ = ()
@property