From 9957b0e6f127132ef8341c1d69733d183a80303b Mon Sep 17 00:00:00 2001 From: Prilkop Date: Mon, 17 Jun 2024 15:46:04 +0300 Subject: [PATCH] added internal Construct methods, used when inheriting the class --- construct-stubs/core.pyi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/construct-stubs/core.pyi b/construct-stubs/core.pyi index 4a28191..70c7876 100644 --- a/construct-stubs/core.pyi +++ b/construct-stubs/core.pyi @@ -138,6 +138,10 @@ class Construct(t.Generic[ParsedType, BuildTypes]): def __getitem__( self, count: t.Union[int, t.Callable[[Context], int]] ) -> Array[ParsedType, BuildTypes,]: ... + def _parse(self, stream: StreamType, context: Context, path: PathType) -> ParsedType: ... + def _parsereport(self, stream: StreamType, context: Context, path: PathType) -> ParsedType: ... + def _build(self, obj: BuildTypes, stream: StreamType, context: Context, path: PathType) -> int: ... + def _sizeof(self, context: Context, path: PathType) -> int: ... @t.type_check_only class Context(Container[t.Any]):