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

Type Variable Names #163

Open
jparise opened this issue Feb 3, 2021 · 0 comments
Open

Type Variable Names #163

jparise opened this issue Feb 3, 2021 · 0 comments

Comments

@jparise
Copy link
Member

jparise commented Feb 3, 2021

PEP 8 suggest some naming rules for type variables:

Names of type variables introduced in PEP 484 should normally use CapWords preferring short names: T, AnyStr, Num. It is recommended to add suffixes _co or _contra to the variables used to declare covariant or contravariant behavior correspondingly.

These might be useful additional checks to add to pep8-naming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant