Skip to content

Commit bcbdfa8

Browse files
authored
Add core.pyi to resolve pyre issue when importing from executorch.extension.pybindings.core
Differential Revision: D61044759 Pull Request resolved: #4653
1 parent a5c1bb9 commit bcbdfa8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extension/pybindings/TARGETS

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,18 @@ runtime.genrule(
3030
srcs = [":pybinding_types"],
3131
outs = {
3232
"aten_lib.pyi": ["aten_lib.pyi"],
33+
"core.pyi": ["core.pyi"],
3334
"_portable_lib.pyi": ["_portable_lib.pyi"],
3435
},
35-
cmd = "cp $(location :pybinding_types)/* $OUT/_portable_lib.pyi && cp $(location :pybinding_types)/* $OUT/aten_lib.pyi",
36+
cmd = "cp $(location :pybinding_types)/* $OUT/_portable_lib.pyi && cp $(location :pybinding_types)/* $OUT/aten_lib.pyi && cp $(location :pybinding_types)/* $OUT/core.pyi",
3637
visibility = ["//executorch/extension/pybindings/..."],
3738
)
3839

3940
executorch_pybindings(
4041
compiler_flags = ["-std=c++17"],
4142
cppdeps = PORTABLE_MODULE_DEPS,
4243
python_module_name = "core",
44+
types = ["//executorch/extension/pybindings:pybindings_types_gen[core.pyi]"],
4345
visibility = ["PUBLIC"],
4446
)
4547

0 commit comments

Comments
 (0)