Merge pull request #30 from adamrimon/feature/inner_construct_methods

Internal Construct methods
This commit is contained in:
timrid 2025-01-12 13:39:49 +01:00 committed by GitHub
commit ef933cc06d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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]):