-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
agent/nodes.py cannot parse f-string when it's numeric #80
Comments
I suppose you're getting a KeyError? Could you tell me which one it is exactly ^^? Or provide the full traceback? Thanks |
Thanks for the quick response. The error is in the original post, here is the full traceback. |
Thanks, should be fixed now, in 0.20.0 🙂 |
Awesome thanks! |
Wow, that was fast! Thanks for the fix! |
Describe the bug
When
pyupgrade
automatically upgrades ourformat
ted string to a f-string,griffe.agents.nodes.py
cannot parse the f-string and throws an errorTo Reproduce
Run
mkdocs serve
for this code snippetExpected behavior
no error should be thrown and _get_call_value() should be able to accept a numeric value.
System (please complete the following information):
griffe
version: 0.14.0Suggested fix
casting the value to
str
in the file agents/nodes.py, line 764, however, I am not sure about the side effect, which has to be validated through the CI/CD pipeline.The text was updated successfully, but these errors were encountered: