Commit ea0d187
authored
Check whether Constant value is str (#1333)
This change fixes a case of a missed check on the value
of a ast.Constant to be a str or not. PR #1323 fixed
many of these as part of the Python 3.14 compatibility
since ast.Str was removed. So when checking ast.Constant,
the value can many types of literals, not just str.
Fixes #1332
Signed-off-by: Eric Brown <[email protected]>1 parent 8bf7594 commit ea0d187
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
306 | 312 | | |
307 | 313 | | |
308 | 314 | | |
| |||
0 commit comments