mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-27 08:19:47 +03:00
Remove unnecessary decorator
This commit is contained in:
parent
d22550892e
commit
20df051e39
|
@ -1,16 +1,16 @@
|
||||||
import functools
|
import functools
|
||||||
import struct
|
import struct
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
from typing import TYPE_CHECKING, Any, Optional, Protocol, Type, runtime_checkable
|
from typing import TYPE_CHECKING, Any, Optional, Type
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
from typing import Protocol
|
||||||
@runtime_checkable
|
|
||||||
class Buffer(Protocol):
|
|
||||||
def __buffer__(self, flags: int, /) -> memoryview: ...
|
|
||||||
|
|
||||||
from .serializable import Serializable
|
from .serializable import Serializable
|
||||||
|
|
||||||
|
class Buffer(Protocol):
|
||||||
|
def __buffer__(self, flags: int, /) -> memoryview: ...
|
||||||
|
|
||||||
|
|
||||||
def _bootstrap_get_ty(constructor_id: int) -> Optional[Type["Serializable"]]:
|
def _bootstrap_get_ty(constructor_id: int) -> Optional[Type["Serializable"]]:
|
||||||
# Lazy import because generate code depends on the Reader.
|
# Lazy import because generate code depends on the Reader.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user