This commit is contained in:
2026-04-10 15:06:59 +02:00
parent 3031b7153b
commit e5a4711004
7806 changed files with 1918528 additions and 335 deletions

View File

@@ -0,0 +1,18 @@
from numba import float32, njit
import unittest
def foo():
x = 123
return x
class TestLocals(unittest.TestCase):
def test_seed_types(self):
cfunc = njit((), locals={'x': float32})(foo)
self.assertEqual(cfunc.nopython_signatures[0].return_type, float32)
if __name__ == '__main__':
unittest.main()