Skip to content

Commit e5b01fc

Browse files
committed
more linting
1 parent 4034a3d commit e5b01fc

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/pylattica/visualization/result_artist.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ def jupyter_play(self, cell_size: int = 20, wait: int = 1, **kwargs):
9797
wait : int, optional
9898
The time duration between frames in the animation. Defaults to 1., by default 1
9999
"""
100-
from IPython.display import clear_output, display # pylint: disable=import-error # pragma: no cover
100+
from IPython.display import (
101+
clear_output,
102+
display,
103+
) # pylint: disable=import-error # pragma: no cover
101104

102105
imgs = self._get_images(cell_size=cell_size, **kwargs) # pragma: no cover
103106
for img in imgs: # pragma: no cover

src/pylattica/visualization/structure_artist.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ def jupyter_show(self, state: SimulationState, **kwargs):
2929
state : SimulationState
3030
The simulation state to display.
3131
"""
32-
from IPython.display import display # pylint: disable=import-error # pragma: no cover
32+
from IPython.display import (
33+
display,
34+
) # pylint: disable=import-error # pragma: no cover
3335

3436
img = self.get_img(state, **kwargs) # pragma: no cover
3537
display(img) # pragma: no cover

0 commit comments

Comments
 (0)