@@ -1009,15 +1009,17 @@ class ProcessRotateLeft(
10091009 subcon : Construct [SubconParsedType , SubconBuildTypes ],
10101010 ) -> ProcessRotateLeft [SubconParsedType , SubconBuildTypes ]: ...
10111011
1012- class Checksum (Construct [ParsedType , BuildTypes ]):
1012+ T = t .TypeVar ("T" )
1013+
1014+ class Checksum (t .Generic [T , ParsedType , BuildTypes ], Construct [ParsedType , BuildTypes ]):
10131015 checksumfield : Construct [ParsedType , BuildTypes ]
1014- hashfunc : t .Callable [[bytes ], BuildTypes ]
1015- bytesfunc : t .Callable [[Context ], bytes ]
1016+ hashfunc : t .Callable [[T ], BuildTypes ]
1017+ bytesfunc : t .Callable [[Context ], T ]
10161018 def __init__ (
10171019 self ,
10181020 checksumfield : Construct [ParsedType , BuildTypes ],
1019- hashfunc : t .Callable [[bytes ], BuildTypes ],
1020- bytesfunc : t .Callable [[Context ], bytes ],
1021+ hashfunc : t .Callable [[T ], BuildTypes ],
1022+ bytesfunc : t .Callable [[Context ], T ],
10211023 ) -> None : ...
10221024
10231025class Compressed (Tunnel [SubconParsedType , SubconBuildTypes ]):
0 commit comments