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

Detect !~ in roles #126

Open
hugovk opened this issue Dec 6, 2024 · 0 comments
Open

Detect !~ in roles #126

hugovk opened this issue Dec 6, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@hugovk
Copy link
Collaborator

hugovk commented Dec 6, 2024

:meth:`~list.pop` can be used to display pop().

:meth:`!list.pop` can be used to display list.pop() and avoid reference warnings.

:meth:`!~list.pop` cannot be used to display pop() and avoid reference warnings, instead it shows ~list.pop()

✅ We should instead write :meth:`!pop` to display pop().

Real life example: python/cpython#127054 (review)

Can we detect this with Sphinx Lint?

@hugovk hugovk added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant