Skip to content

Commit

Permalink
Update code for warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mmouchous-ledger committed Apr 5, 2024
1 parent ba87881 commit 46a2f7a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion laserstudio/instruments/laserdriver.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Lazy import, LaserDriver is not supported yet.
try:
from laser_driver import LaserDriver
from laser_driver import LaserDriver # type: ignore
except Exception:
LaserDriver = None

Expand Down
2 changes: 1 addition & 1 deletion laserstudio/widgets/toolbars/laserdrivertoolbar.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
try:
from laser_driver import LaserDriverPanel
from laser_driver import LaserDriverPanel # type: ignore
except Exception:
LaserDriverPanel = None
from .lasertoolbar import LaserToolbar
Expand Down
2 changes: 1 addition & 1 deletion tests/test_lsapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def test_add_measurement():
def test_add_5000_measurements_seq():
api = LSAPI()
first = api.measurement(
(random(), random(), random(), 0.7), p := (random() * 100, random() * 100)
(random(), random(), random(), 0.7), (random() * 100, random() * 100)
)
col_pos = [
((random(), random(), random(), 0.7), (random() * 100, random() * 100))
Expand Down

0 comments on commit 46a2f7a

Please sign in to comment.