From 747bfaebd132d025001f914a82012d7cdcee5099 Mon Sep 17 00:00:00 2001 From: Tim Riddermann Date: Fri, 6 Jan 2023 10:32:44 +0100 Subject: [PATCH] added generic wrapper for cs.Array --- construct_typed/generic_wrapper.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/construct_typed/generic_wrapper.py b/construct_typed/generic_wrapper.py index aa4af4c..99d8026 100644 --- a/construct_typed/generic_wrapper.py +++ b/construct_typed/generic_wrapper.py @@ -37,5 +37,11 @@ else: class Context: pass + class Array( + t.Generic[SubconParsedType, SubconBuildTypes, ParsedType, BuildTypes], + cs.Array, + ): + pass + ConstantOrContextLambda = t.Union[ValueType, t.Callable[[Context], t.Any]] PathType = str