| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Callable is still a special form for two reasons: (1) variance and (2) type checkers may use different attribute semantics than with a bare callable protocol, though that's not specified.
We can revisit this once ParamSpec variance is accepted.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
discussion: https://discuss.python.org/t/callable-isnt-a-special-form/106407
Callable is a normal class, it doesn't have any special meaning in the type system, it's the same as the definitions of Iterable etc