Skip to content

Commit d300b71

Browse files
committed
Ignore kwant import error in pylint
1 parent d3d267a commit d300b71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tbmodels/_tb_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ def to_kwant_lattice(self):
860860
861861
.. note :: The TBmodels - Kwant interface is experimental. Use it with caution.
862862
"""
863-
import kwant # pylint: disable=import-outside-toplevel
863+
import kwant # pylint: disable=import-outside-toplevel,import-error
864864

865865
sublattices = self._get_sublattices()
866866
uc = self.uc if self.uc is not None else np.eye(self.dim)
@@ -874,7 +874,7 @@ def add_hoppings_kwant(self, kwant_sys, kwant_sublattices=None):
874874
875875
.. note :: The TBmodels - Kwant interface is experimental. Use it with caution.
876876
"""
877-
import kwant # pylint: disable=import-outside-toplevel
877+
import kwant # pylint: disable=import-outside-toplevel,import-error
878878

879879
sublattices = self._get_sublattices()
880880
if kwant_sublattices is None:

0 commit comments

Comments
 (0)