Traceback (most recent call last):


 "/usr/lib/python3.6/site-packages/spyder/widgets/helperwidgets.py", line 127, in paint

textRect = style.subElementRect(QStyle.SE_ItemViewItemText, options)
TypeError: subElementRect(self, QStyle.SubElement, QStyleOption, QWidget): not enough arguments

Traceback (most recent call last):


 "/opt/homebrew/Caskroom/miniforge/base/envs/py39/lib/python3.9/site-packages/magicgui/widgets/_bases/value_widget.py", line 44, in <lambda>

lambda *x: self.changed(value=x[0] if x else None)


 "/opt/homebrew/Caskroom/miniforge/base/envs/py39/lib/python3.9/site-packages/magicgui/events.py", line 603, in __call__

self._invoke_callback(cb, event)


 "/opt/homebrew/Caskroom/miniforge/base/envs/py39/lib/python3.9/site-packages/magicgui/events.py", line 621, in _invoke_callback

_handle_exception(


 "/opt/homebrew/Caskroom/miniforge/base/envs/py39/lib/python3.9/site-packages/magicgui/events.py", line 619, in _invoke_callback

cb(event)


 "/opt/homebrew/Caskroom/miniforge/base/envs/py39/lib/python3.9/site-packages/magicgui/widgets/_function_gui.py", line 179, in <lambda>

self._call_button.changed.connect(lambda e: self.__call__())


 "/opt/homebrew/Caskroom/miniforge/base/envs/py39/lib/python3.9/site-packages/magicgui/widgets/_function_gui.py", line 272, in __call__

callback(self, value, return_type)


 "/opt/homebrew/Caskroom/miniforge/base/envs/py39/lib/python3.9/site-packages/napari/utils/_magicgui.py", line 341, in add_layer_to_viewer

viewer.add_layer(result)


 "/opt/homebrew/Caskroom/miniforge/base/envs/py39/lib/python3.9/site-packages/napari/components/viewer_model.py", line 479, in add_layer

self.layers.append(layer)


 "/opt/homebrew/Caskroom/miniforge/base/envs/py39/lib/python3.9/_collections_abc.py", line 988, in append

self.insert(len(self), value)


 "/opt/homebrew/Caskroom/miniforge/base/envs/py39/lib/python3.9/site-packages/napari/components/layerlist.py", line 68, in insert

new_layer = self._type_check(value)


 "/opt/homebrew/Caskroom/miniforge/base/envs/py39/lib/python3.9/site-packages/napari/utils/events/containers/_typed.py", line 164, in _type_check

raise TypeError(
TypeError: Cannot add object with type <class 'numpy.ndarray'> to TypedList expecting type (<class 'napari.layers.base.base.Layer'>,)
