Replies: 1 comment 2 replies
-
So the short honest answer is: I'm not sure but I'll look into it. For static checkers like PyType, I think you'd need to modify those tools specifically to know about curried functions and how to infer their types and I have no idea what would be involved in that. I think I've hinted everything in pymonad correctly but honestly, I don't really know much about the internals for the typing/hinting system so I'm afraid I don't have a good answer for you at the moment. But, as I said, I'll look into it and try to keep you posted. Fair warning though, work is pretty busy for me at the moment so it'll probably be at least a couple weeks before I have the time to really dig into it. |
Beta Was this translation helpful? Give feedback.
-
I couldn't find any support for type hints/generics in the documentation. Is it possible to use typed Maybes and get back typed functions when using currying for instance?
I tried curry a function with type hints but Pylance have no clue about the returned function.
Beta Was this translation helpful? Give feedback.
All reactions