-
Notifications
You must be signed in to change notification settings - Fork 160
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
(chore): export read_elem
and write_elem
from the main package
#1598
Merged
Merged
Changes from 11 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
a6969b7
(chore): export `read_elem` and `write_elem` from the main package
ilan-gold 1cc2b48
(chore): pr number
ilan-gold c89238d
(fix): agnostic way of importing
ilan-gold 31c7ad0
(fix): add `RWAble` to `api.md`
ilan-gold 99e0216
(fix): `md` file import
ilan-gold 08b741b
Merge branch 'main' into ig/{read,write}_elem_out_of_experimental
ilan-gold ac354e1
Merge branch 'main' into ig/{read,write}_elem_out_of_experimental
ilan-gold 54b27d7
(fix): export `InMemoryElem`
ilan-gold 568620c
(chore): release note
ilan-gold 9185bea
(chore): move `InMemoryElem` to the "extras" section
ilan-gold d051ab4
(chore): add warnings for old `experimental` imports
ilan-gold 8419935
Merge branch 'main' into ig/{read,write}_elem_out_of_experimental
ilan-gold 5013a5c
(fix): dont blanket warn
ilan-gold 02427f5
Merge branch 'ig/{read,write}_elem_out_of_experimental' of github.com…
ilan-gold b332f04
(fix): split `__deprecated__` from `__all__`
ilan-gold bcac6b3
Update src/anndata/experimental/__init__.py
ilan-gold 30395aa
Merge branch 'ig/{read,write}_elem_out_of_experimental' of github.com…
ilan-gold 481109d
(fix): `key` <-`name`
ilan-gold 8600429
(fix): remove `__dir__`
ilan-gold 07ffa14
fix deprecation system
flying-sheep 5cbe741
Merge branch 'main' into ig/{read,write}_elem_out_of_experimental
flying-sheep 8accd32
(fix): remove from `experimental` in note
ilan-gold 20cd124
(fix): fix old note
ilan-gold a39d178
Merge branch 'ig/{read,write}_elem_out_of_experimental' of github.com…
ilan-gold File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Export {func}`~anndata.write_elem` and {func}`~anndata.read_elem` directly from the main package instead of `experimental` {user}`ilan-gold` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
why not just define
def __getattr__(key: str) -> Any: ...
in the experimental module directly?https://peps.python.org/pep-0562/ exists since 3.7
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.
This has the advantage of never having to thinking about this again. As we move things out of experimental into the public API, we'll never have to update this.
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.
Maybe you could do
__getattr__
without a circular import? I guess I can try but I just kind of assumed notThere 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.
Although now that I think about it, maybe a blanket warning isn't such a good idea...would want to be explicit about deprecations
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.
You can just import inside of
__getattr__
, no?experimental/__init__.py
: