提交 b942a91f 编写于 作者: A A. Unique TensorFlower 提交者: TensorFlower Gardener

Add unused parameter enable_stub_generation to open-source version of...

Add unused parameter enable_stub_generation to open-source version of pybind_extension to be in sync with the internal version.

PiperOrigin-RevId: 549476112
上级 56855f3b
......@@ -2983,7 +2983,7 @@ def pybind_library(
def pybind_extension_opensource(
name,
srcs,
module_name = None,
module_name = None, # Unused.
hdrs = [],
dynamic_deps = [],
static_deps = [],
......@@ -2994,6 +2994,7 @@ def pybind_extension_opensource(
data = [],
defines = [],
deprecation = None,
enable_stub_generation = False, # Unused.
features = [],
link_in_framework = False,
licenses = None,
......@@ -3006,7 +3007,7 @@ def pybind_extension_opensource(
visibility = None,
win_def_file = None):
"""Builds a generic Python extension module."""
_ignore = [module_name]
_ignore = [enable_stub_generation, module_name] # buildifier: disable=unused-variable
p = name.rfind("/")
if p == -1:
sname = name
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册