-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Make several argument defaults immutable (and annotate them) #17496
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -93,6 +93,9 @@ py:class np.ma.MaskedArray | |||||||
| # locally defined type variable for ndarray dtype | ||||||||
| py:class DT | ||||||||
| # type aliases | ||||||||
| py:class Complex | ||||||||
| py:class Real | ||||||||
| py:class UnitPower | ||||||||
|
Comment on lines
+96
to
+98
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. RTD was complaining about these. If we are using the aliases in public function signatures then we should document them, but I don't know how to do it. Just adding them to
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we'd need to let sphinx typeset
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reason I tried only editing Documenting type annotations with Sphinx is known to be buggy: astropy/docs/nitpick-exceptions Lines 80 to 82 in 4a55b10
It is quite likely that we cannot work around these bugs in astropy, so I don't intend on spending any more time looking into this.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, yes, I see we expose |
||||||||
| py:class UnitScale | ||||||||
|
|
||||||||
| # Classes from `astropy.extern` that are nonetheless exposed in documentation | ||||||||
|
|
||||||||
Uh oh!
There was an error while loading. Please reload this page.