Skip to content

Commit 10476cb

Browse files
committed
fix: correct syntax error in f-string and enhance compatibility with Python 3.9 to 3.11
1 parent d413275 commit 10476cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/import_validation/developer_code.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class MyLibrarySpy(SpyModel):
2626
# Dynamically import the module and check if it complies with the rules
2727
try:
2828
module = spy.importspy(spymodel=MyLibrarySpy)
29-
print(f"Module {"/".join(module.__file__.split('/')[-2:])} is using your library correctly!")
29+
filename = "/".join(module.__file__.split('/')[-2:])
30+
print(f"Module {filename} is using your library correctly!")
3031
except ValueError as ve:
3132
print("Something wrong: ", ve)

0 commit comments

Comments
 (0)