Thread
:
Avoiding "is not defined" errors with Pylance and VSCode
View Single Post
08-06-2025, 09:59 PM
#
2
kovidgoyal
creator of calibre
Posts: 45,418
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Why do you need to do that at all? Just import those functions explicitly, like this
from calibre.utils.localization import gettext as _, ngettext, load_translations
kovidgoyal
View Public Profile
Visit kovidgoyal's homepage!
Find More Posts by kovidgoyal
Track Posts by kovidgoyal via RSS