-
-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Labels
unconfirmedThis bug was not reproduced yetThis bug was not reproduced yet
Description
Description of the bug
These two classes produce code by hardcoding single quotes at the beginning and end of the strings. This can produce invalid code if the string contains additional single quotes.
To Reproduce
TODO
Full traceback
/
Expected behavior
We should produce valid code, always.
Environment information
griffe --debug-info # | xclip -selection clipboard- System: Linux-6.18.7-arch1-1-x86_64-with-glibc2.42
- Python: cpython 3.14.2 (/run/media/pawamoy/Data/dev/griffe/.venv/bin/python3)
- Environment variables:
- Installed packages:
griffelibv1.15.1.dev12+g162c31c2griffecliv1.15.1.dev12+g162c31c2griffev1.15.1.dev12+g162c31c2
Additional context
Spotted in #440
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
unconfirmedThis bug was not reproduced yetThis bug was not reproduced yet