Skip to content

After update to 0.7.0 magicgui stop handling optional return #541

@Czaki

Description

@Czaki

Describe the bug
A clear and concise description of what the bug is.

Up to version 0.6.1, it is possible to annotate Optional[ImageData], and it works without problems.

Since 0.7.0 the

for callback in type2callback(return_type):

does not return add_layer callback

Is this a real bug change or an intentional change that needs to be handled on the napari side?

To Reproduce
Steps to reproduce the behavior:

Use test form this PR with magicgui 0.6.1 and 0.7.2
napari/napari#5595

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: [e.g. Windows, Mac]
  • backend: [e.g. Qt 5.13.0]
  • magicgui version [e.g. 0.1.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions