Skip to content

Commit 308134b

Browse files
authored
Merge pull request #52 from matplotlib/layer-init
Correctly initialise layer list
2 parents 4fa6f65 + 8d5fa4a commit 308134b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/napari_matplotlib/base.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22
from pathlib import Path
3-
from typing import Tuple
3+
from typing import List, Tuple
44

55
import matplotlib as mpl
66
import napari
@@ -67,6 +67,7 @@ def __init__(self, napari_viewer: napari.viewer.Viewer):
6767
self.layout().addWidget(self.canvas)
6868

6969
self.setup_callbacks()
70+
self.layers: List[napari.layers.Layer] = []
7071

7172
# Accept any number of input layers by default
7273
n_layers_input = Interval(None, None)

0 commit comments

Comments
 (0)