construct-typing/construct-stubs/debug.pyi
Tim Rid 29f6af7936 added stubs for py3compat.py
added stubs for debug.py
core: fixed Enum + EnumFlag, renamed ContextCallable to ContextLambda
2020-12-10 21:57:31 +01:00

12 lines
359 B
Python

from typing import Optional, Callable, Any
from construct import Construct, Subconstruct
from construct.core import Context
ContextLambda = Callable[[Context], Any]
class Probe(Construct[None, None]):
def __init__(
self, into: Optional[ContextLambda] = ..., lookahead: int = ...
) -> None: ...
class Debugger(Subconstruct[None, None]): ...