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

PEP287 doesn't list available roles for interpreted text #4139

Open
KubaO opened this issue Nov 28, 2024 · 0 comments
Open

PEP287 doesn't list available roles for interpreted text #4139

KubaO opened this issue Nov 28, 2024 · 0 comments

Comments

@KubaO
Copy link

KubaO commented Nov 28, 2024

Although the Python source context reader is designed not to require explicit roles, they may be used. To classify identifiers explicitly, the role is given along with the identifier in either prefix or suffix form [...]

Only two roles are given in the example: :method: and :instance_attribute:. There is no spec for the roles anywhere (other than source code for tooling I imagine). It would really help to have a list of the available roles.

I'll gladly submit a PR if someone can point me to the "single source of truth" on those.

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

No branches or pull requests

1 participant