Replies: 1 comment 2 replies
-
I'm not aware of anything in the current Python type standards that would support this. PEP 612 (ParamSpec) allows limited forms of parameter concatenation and removal, but you're probably looking for something more general. If you have a specific proposal that you'd like to suggest, I recommend that you post it in the Python typing-sig. That's where new Python type system standards are discussed. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be very nice to have static type checking for curried and/or partially applied functions if possible.
I'm thinking about the partial function from the functools module or the @Curry decorator from the Pymonad package.
Beta Was this translation helpful? Give feedback.
All reactions