Replies: 3 comments 2 replies
-
Nope, Maybe it is time to start a discussion about potential |
Beta Was this translation helpful? Give feedback.
-
@sobolevn - I guess that's what I'd feared... do pylance and friends support mypy plugins? |
Beta Was this translation helpful? Give feedback.
-
Doing the same for the |
Beta Was this translation helpful? Give feedback.
-
I think it's a relatively common pattern to have some kind of object that represents a value at a later date, or some other kind of "wrapping" type, such as a Twisted
Deferred
, asyncio or concurrentFuture
, etc. But how do we get type checking of the results of getting attributes of these?Concretely:
https://github.com/cjw296/generative_typing/blob/main/bag.py
...which can be used like:
I've got this working with a mypy plugin, but how could I get this to work so that pylance, ruff, etc would also work?
Beta Was this translation helpful? Give feedback.
All reactions