Closed declaresub closed 1 month ago
Hi!
I took at look at this. I don't think UnstructureHookT
is correct though - that's a TypeVar and this isn't a generic function. It should probably be UnstructureHook
instead. Does that solve your pyright issue?
Also please add a small changelog entry ;)
Thanks!
Change type of unstruct_collection_overrides from Mapping[type, Callable] to Mapping[type, UnstructureHookT] in Converter.init.