-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect "Module ... has no attribute" #7423
Comments
|
@JukkaL yes, indeed, removing from planner.scheduling.reserve import (
book_campaign,
cancel_campaign,
reserve_campaign,
)
from planner.scheduling.make_schedule import (
LowLevelSchedulingStats,
make_schedule,
)
from planner.scheduling.lowlevel.base import ScheduleBuilder, ScheduleBuilderMaker
from planner.scheduling.lowlevel.randy import RandyScheduleBuilder
__all__ = [
'book_campaign',
'cancel_campaign',
'reserve_campaign',
'LowLevelSchedulingStats',
'make_schedule',
'ScheduleBuilder',
'ScheduleBuilderMaker',
'RandyScheduleBuilder',
] The docs say that P.S. |
|
@JukkaL yes, |
This is required because mypy --strict uses --no-implicit-reexport. See: python/mypy#7423
Thanks to python/mypy#7423 I understood that the problem was in my relationship with mypy.
Resurrecting this old issue - I'm having this problem now, with version 0.942. Importing a module with |
I've created a full repro here.
In short, there's a main module which imports some names from another package:
All these names are correct, however
mypy --strict -p planner
shows errors:The text was updated successfully, but these errors were encountered: