Skip to content

Commit 043b0d3

Browse files
committed
Mark as experimental
1 parent a05e17e commit 043b0d3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

mypyc/primitives/librt_strings_ops.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
return_type=bytes_rprimitive,
2323
c_function_name="LibRTStrings_BytesWriter_getvalue_internal",
2424
error_kind=ERR_MAGIC,
25+
experimental=True,
26+
capsule="librt.strings",
2527
)
2628

2729
method_op(
@@ -30,6 +32,8 @@
3032
return_type=none_rprimitive,
3133
c_function_name="LibRTStrings_BytesWriter_write_internal",
3234
error_kind=ERR_MAGIC,
35+
experimental=True,
36+
capsule="librt.strings",
3337
)
3438

3539
method_op(
@@ -38,4 +42,6 @@
3842
return_type=none_rprimitive,
3943
c_function_name="LibRTStrings_BytesWriter_append_internal",
4044
error_kind=ERR_MAGIC,
45+
experimental=True,
46+
capsule="librt.strings",
4147
)

mypyc/primitives/registry.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def method_op(
101101
is_borrowed: bool = False,
102102
priority: int = 1,
103103
is_pure: bool = False,
104+
experimental: bool = False,
104105
capsule: str | None = None,
105106
) -> PrimitiveDescription:
106107
"""Define a c function call op that replaces a method call.
@@ -146,7 +147,7 @@ def method_op(
146147
extra_int_constants,
147148
priority,
148149
is_pure=is_pure,
149-
experimental=False,
150+
experimental=experimental,
150151
capsule=capsule,
151152
)
152153
ops.append(desc)

0 commit comments

Comments
 (0)