Remove unnecessary decorator

This commit is contained in:
Jahongir Qurbonov 2024-08-31 19:11:35 +05:00
parent d22550892e
commit 20df051e39

View File

@ -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.