FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

don't state that `Callable` is a special form by KotlinIsland · Pull Request #2214 · python/typing · GitHub

/ typing Public

don't state that Callable is a special form - #2214

Open
KotlinIsland wants to merge 1 commit into
python:mainfrom
KotlinIsland:callable-special-form
Open

don't state that Callable is a special form#2214
KotlinIsland wants to merge 1 commit into
python:mainfrom
KotlinIsland:callable-special-form

Conversation

Copy link
Copy Markdown
Contributor

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

JelleZijlstra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: typing spec For improving the typing spec

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL