-
Notifications
You must be signed in to change notification settings - Fork 21
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
docs build - fix for automodapi
#156
Conversation
It looks like the build fails with
|
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #156 +/- ##
=======================================
Coverage 96.73% 96.73%
=======================================
Files 9 9
Lines 1101 1101
=======================================
Hits 1065 1065
Misses 36 36 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
It looks like the behavior has changed with Python 3.9. The issue and a proposed updated solution is documented here. |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
1278aaf
to
b004f7a
Compare
for more information, see https://pre-commit.ci
automodapi
to exclude imported members
automodapi
to exclude imported membersautomodapi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK to me, hopefully they will update the astropy/sphinx code so we can remove the patch at some point.
The failure is unrelated. |
I do not like this fix considering its only needed to fix some type hints. |
@WilliamJamieson Do you have a better suggestion? |
Short answer is fix
So
from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from typing import Any, Iterator
from typing import Any, Iterator Allows for the type-hints to say, but they will only be imported if type checking via the annotations is used.
The either options 1 and 2 or 1 and 3 would be the best way to deal with the issue. Note, |
apply fix from #155 (comment) for docs build issue in
Python > 3.8