Skip to content

Commit aaf6002

Browse files
authored
Fix time op now that it is no longer experimental (#21318)
I forgot this in my original PR #21310
1 parent d2ad1c7 commit aaf6002

2 files changed

Lines changed: 3 additions & 11 deletions

File tree

mypyc/primitives/librt_time_ops.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@
99
return_type=float_rprimitive,
1010
c_function_name="LibRTTime_time",
1111
error_kind=ERR_MAGIC_OVERLAPPING,
12-
experimental=True,
1312
dependencies=[LIBRT_TIME],
1413
)

mypyc/test-data/irbuild-time.test

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,7 @@ def get_time() -> float:
2626
return time()
2727
[out]
2828
def get_time():
29-
r0 :: dict
30-
r1 :: str
31-
r2, r3 :: object
32-
r4 :: float
29+
r0 :: float
3330
L0:
34-
r0 = __main__.globals :: static
35-
r1 = 'time'
36-
r2 = CPyDict_GetItem(r0, r1)
37-
r3 = PyObject_Vectorcall(r2, 0, 0, 0)
38-
r4 = unbox(float, r3)
39-
return r4
31+
r0 = LibRTTime_time()
32+
return r0

0 commit comments

Comments
 (0)