-
Notifications
You must be signed in to change notification settings - Fork 49
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
Support sequences #342
Support sequences #342
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
i like it! thanks! let me know when you're ready for a full review |
Codecov Report
@@ Coverage Diff @@
## main #342 +/- ##
==========================================
+ Coverage 88.33% 88.65% +0.31%
==========================================
Files 30 30
Lines 3609 3790 +181
==========================================
+ Hits 3188 3360 +172
- Misses 421 430 +9
Continue to review full report at Codecov.
|
Hi @tlambert03, A few things that I cannot decide by myself are:
|
Sorry, @tlambert03, the last commit is a separated one... (concerning #361) |
Hey @hanjinliu, sorry for the delay here. I'm ready to take a look at this. Note that https://github.com/napari/magicgui/pull/362 is solving #361, and a lot of other issues with forward refs. But will likely create conflicts here. Perhaps we should merge that one before coming back to the type_map updates in this PR? I can help with that merge if you'd like. I'll do a more thorough review once that is resolved, and we can get this in for the next release, which I'd like to do soon. |
Hi @tlambert03, I've read the upcoming changes in type mapping. |
I was misreading a little bit few days ago... but I updated things for the new |
@hanjinliu this is super awesome! I'd love to use this in my plugin, what is the status of this PR? |
waiting on me/review at this point |
so sorry for the delay on this @hanjinliu. been busy and haven't found the time to give this the close look I wanted to. Since it's pretty much just a new feature, (and at first glance looks to be nicely implemented!) I'm going to just merge this so people like @gselzer can take a crack at it. We can iterate as needed if anything arises. Thanks again for your contribution and your patience! |
Hi, @tlambert03 |
@hanjinliu @tlambert03 this seems to work great! Thanks for working on this! This allows us to finally set up variable length arrays and lists in napari-imagej! Here's an early look at a N-Dimensional gaussian blur with separate dimensional sigmas: |
Trying to add typing supports of such as
list[str]
andtuple[int, int]
.These examples are how it is intended to be used.
Still need more strict typing to pass the tests.