Skip to content

Commit 02c5a33

Browse files
committed
mypy ignore OpenSCAD-imported code
1 parent 020bf06 commit 02c5a33

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

solid/test/test_solidpython.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ def test_parse_scad_callables(self):
182182
def test_use(self):
183183
include_file = self.expand_scad_path("examples/scad_to_include.scad")
184184
use(include_file)
185-
a = steps(3)
185+
186+
a = steps(3) # type: ignore
186187
actual = scad_render(a)
187188

188189
abs_path = a._get_include_path(include_file)
@@ -245,12 +246,12 @@ def test_use_reserved_words(self):
245246
f.write(scad_str)
246247

247248
use(path)
248-
a = reserved_word_arg(or_=5)
249+
a = reserved_word_arg(or_=5) # type: ignore
249250
actual = scad_render(a)
250251
expected = f"use <{path}>\n\n\nreserved_word_arg(or = 5);"
251252
self.assertEqual(expected, actual)
252253

253-
b = or_(arg=5)
254+
b = or_(arg=5) # type: ignore
254255
actual = scad_render(b)
255256
expected = f"use <{path}>\n\n\nor(arg = 5);"
256257
self.assertEqual(expected, actual)

0 commit comments

Comments
 (0)