-
-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
Argument Clinic generates weird error messages for incorrectly formatted clinic code #92256
Labels
Comments
erlend-aasland
added
type-bug
An unexpected behavior, bug, or error
topic-argument-clinic
labels
May 3, 2022
Either we allow whitespace before the end "tag", or we disallow it. The former makes for the easiest fix. Any preferences before I propose a PR, @ambv, @serhiy-storchaka, @larryhastings? |
erlend-aasland
added a commit
to erlend-aasland/cpython
that referenced
this issue
May 3, 2022
erlend-aasland
added a commit
that referenced
this issue
May 10, 2022
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
miss-islington
added a commit
that referenced
this issue
May 10, 2022
miss-islington
added a commit
that referenced
this issue
May 10, 2022
miss-islington
added a commit
that referenced
this issue
May 10, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While reviewing a PR, @ambv and I stumbled over some weird AC error messages. After many frustrating minutes, we found that a single before
[clinic start generated code]
generated error messages other places in the code.Reproducers
Repro 1, add indent to clinic module and class declaration. The change is in line 35, but clinic.py complains about line 71.
Repro 2, add indent to method clinic spec. The change is in line 66, but clinic.py complains about line 733.
The text was updated successfully, but these errors were encountered: