Pylance: "IT" is not exported from module "holidays.countries"
Opened this issue · 1 comments
steakhutzeee commented
Hi,
i started using Pylance in VSCode and noted that it complains that:
from holidays.countries import IT
"IT" is not exported from module "holidays.countries"
Import from "holidays.countries.italy" instead
Is this a false positive? Because my code actually works.
Thanks!
arkid15r commented
Hi @steakhutzeee,
Is this a false positive? Because my code actually works.
We don't have __all__
specified for countries (and financial) module reimports. I believe Pylance complains exactly because of that.
Try playing with
"python.analysis.diagnosticSeverityOverrides": {
"reportPrivateImportUsage":"none"
}
settings if that's too annoying.
I'll look into what can be done on the PH side later.
Thank you for reporting this!