Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[spec] conceptual foundation and glossary entries for variance #1797

Open
carljm opened this issue Jul 12, 2024 · 0 comments
Open

[spec] conceptual foundation and glossary entries for variance #1797

carljm opened this issue Jul 12, 2024 · 0 comments
Labels
topic: typing spec For improving the typing spec

Comments

@carljm
Copy link
Member

carljm commented Jul 12, 2024

Currently the section on variance says:

A longer introduction to these concepts can be found on Wikipedia and in PEP 483; here we just show how to control a type checker’s behavior.

Now that we have a core concepts section in the spec, it would be good for the spec to also derive the rationale for variance from those core concepts, rather than deferring to the (ten-year-old and not updatable) PEP 483.

We should also add glossary entries for variance terminology: invariant, covariant, contravariant, and variance.

@carljm carljm added the topic: typing spec For improving the typing spec label Jul 12, 2024
@carljm carljm changed the title [spec] clear conceptual foundation for variance [spec] conceptual foundation and glossary entries for variance Jul 12, 2024
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

No branches or pull requests

1 participant