added stubs for debug.py core: fixed Enum + EnumFlag, renamed ContextCallable to ContextLambda
12 lines
359 B
Python
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]): ...
|