Closed cboulay closed 2 months ago
AFAIK typehints don't really affect running code, and I can't see how this could affect pickling... That said, I'm not getting this linting error. With @consumer
in its current state, linting works for me. FWIW I'm using VSCode with the Pylance language server.
OK then it's fine as is. Thanks for checking.
(very low priority)
I find that when I wrap generator functions with
@consumer
, the IDE warns me that any arguments to initialize the generator are unexpected.However, if I change consumer's return type as follows...
then the IDE no longer flags the arguments as unexpected.
I don't know if this has any downstream effects. e.g., I guess this might impact pickling.