You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python 3.10/3.11 incompatible: SyntaxError: f-string expression part cannot include a backslash #751
File "/Users/runner/work/fastcore/fastcore/fastcore/docments.py", line 359
sig_str = f"def {get_name(self.obj)}(\n {'\n '.join(lines)}\n{self._ret_str}"
^
SyntaxError: f-string expression part cannot include a backslash
It seems to not work with Python 3.10 and 3.11, but fine for 3.12.
Reacted by Annebelle Olminkhof, Cameron, Wiktor Kobiela, hardik seth, Petru-NicuDumitrache-TomTom, Yanks Yoon, Chong Shen Ng, Roberto Pastor Muela, Patrik Bartak, Joshua Adelman and 8 more
I'm not sure if you intended this. If yes, then your pip package is faulty, as it says it is compatible with Python 3.10/3.11, which it is not. Or if not, you should just fix the code that it still works with Python 3.10.
Activity
albertz commentedon Jan 18, 2026
I'm not sure if you intended this. If yes, then your pip package is faulty, as it says it is compatible with Python 3.10/3.11, which it is not. Or if not, you should just fix the code that it still works with Python 3.10.
[GHA] Pin fastcore to fix SyntaxError on get_images_to_build.py (#33674)
hugetim commentedon Jan 20, 2026
@jph00 This line, in version 1.12.2, is causing everyone's nbdev tests to fail for Python 3.10 and 3.11: 60544b2#diff-c7cab83f740bd9e52d01a483f5e06ecea78bdf5bf3c16bd75472bcba97c939baR359
jph00 commentedon Jan 20, 2026
Sorry about that! Fixed now in v1.12.3.
build: un-pin fastcore version