Skip to content

Commit e9b4087

Browse files
committed
fix: add py3.8-backwards-compatible typing
1 parent e65858f commit e9b4087

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hnn_core/network.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import itertools as it
1111
from copy import deepcopy
1212
from collections import OrderedDict, defaultdict
13+
from typing import Dict
1314

1415
import numpy as np
1516
import warnings
@@ -1202,7 +1203,7 @@ def _add_cell_type(self, cell_name, pos, cell_template=None):
12021203
self.cell_types.update({cell_name: cell_template})
12031204
self._n_cells += len(pos)
12041205

1205-
def _rename_cell_types(self, name_mapping: dict[str, str]):
1206+
def _rename_cell_types(self, name_mapping: Dict[str, str]):
12061207
"""Renames cell types in the network.
12071208
12081209
Parameters

0 commit comments

Comments
 (0)