Skip to content

Commit

Permalink
use list for new napari after python 3.8 drop
Browse files Browse the repository at this point in the history
  • Loading branch information
brisvag committed Apr 17, 2024
1 parent 5fc51ea commit eb435ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/blik/widgets/main_widget.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations

from importlib.metadata import version
from typing import List

import napari
import numpy as np
Expand Down Expand Up @@ -159,7 +158,7 @@ def add_to_exp(layer: napari.layers.Layer):
)
def new(
l_type,
) -> List[napari.layers.Layer]: # noqa. This must be List, not list (magicgui...)
) -> list[napari.layers.Layer]:
"""create a new layer to add to this experiment."""
layers = getattr(new._main_widget["experiment"], "current_layers", [])
if not layers:
Expand Down

0 comments on commit eb435ed

Please sign in to comment.