2020-12-12 13:17:27 +01:00
|
|
|
import typing as t
|
|
|
|
|
from construct.core import Construct, Subconstruct
|
2020-12-10 21:57:31 +01:00
|
|
|
from construct.core import Context
|
|
|
|
|
|
2020-12-12 13:17:27 +01:00
|
|
|
ContextLambda = t.Callable[[Context], t.Any]
|
2020-12-10 21:57:31 +01:00
|
|
|
|
|
|
|
|
class Probe(Construct[None, None]):
|
|
|
|
|
def __init__(
|
2020-12-12 13:17:27 +01:00
|
|
|
self, into: t.Optional[ContextLambda] = ..., lookahead: int = ...
|
2020-12-10 21:57:31 +01:00
|
|
|
) -> None: ...
|
|
|
|
|
|
|
|
|
|
class Debugger(Subconstruct[None, None]): ...
|