From 6a912ec51dff56523f4d359601a9e7d620086dac Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Mon, 10 Jul 2023 10:32:33 +0200 Subject: [PATCH] Fix a few typos in annotations/__init__.py Found using mypy. --- birdvisu/annotations/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/birdvisu/annotations/__init__.py b/birdvisu/annotations/__init__.py index 4f2211a..205cb00 100644 --- a/birdvisu/annotations/__init__.py +++ b/birdvisu/annotations/__init__.py @@ -56,7 +56,7 @@ class AnnotatedTopology: if ann_id in self.annotations: if ann_id.annotator.idempotent: return None # Shortcut :-) # Scrap old data before re-running - old_annot = self.annotatons[ann_id] + old_annot = self.annotations[ann_id] for v in old_annot.for_vertex: self.vertex_annotators[v].remove(ann_id) for e in old_annot.for_edge: @@ -67,7 +67,7 @@ class AnnotatedTopology: annotator = ann_id.annotator(ann_id.param) annotation = annotator.annotate(self) for v in annotation.for_vertex: - self.vertex_annotation[v].add(ann_id) + self.vertex_annotators[v].add(ann_id) for e in annotation.for_edge: self.edge_annotators[e].add(ann_id) if annotation.for_topology is not None: