From bc21b70be1e336a4ad0d4cbb3ecb3acafd49275c Mon Sep 17 00:00:00 2001 From: Adam Liddell Date: Thu, 1 Dec 2022 22:35:06 +0000 Subject: [PATCH] Fix typo in dict comprehension --- android/android_grpc_library.bzl | 2 +- android/android_proto_library.bzl | 2 +- c/c_proto_library.bzl | 2 +- cpp/cpp_grpc_library.bzl | 2 +- cpp/cpp_proto_library.bzl | 2 +- csharp/csharp_grpc_library.bzl | 2 +- csharp/csharp_proto_library.bzl | 2 +- d/d_proto_library.bzl | 2 +- fsharp/fsharp_grpc_library.bzl | 2 +- fsharp/fsharp_proto_library.bzl | 2 +- java/java_grpc_library.bzl | 2 +- java/java_proto_library.bzl | 2 +- js/js_grpc_node_library.bzl | 2 +- js/js_grpc_web_library.bzl | 2 +- js/js_proto_library.bzl | 2 +- objc/objc_grpc_library.bzl | 2 +- objc/objc_proto_library.bzl | 2 +- python/python_grpc_library.bzl | 2 +- python/python_grpclib_library.bzl | 2 +- python/python_proto_library.bzl | 2 +- ruby/ruby_grpc_library.bzl | 2 +- ruby/ruby_proto_library.bzl | 2 +- rust/rust_grpc_library.bzl | 2 +- rust/rust_proto_library.bzl | 2 +- scala/scala_grpc_library.bzl | 2 +- scala/scala_proto_library.bzl | 2 +- swift/swift_grpc_library.bzl | 2 +- swift/swift_proto_library.bzl | 2 +- tools/rulegen/common.go | 2 +- 29 files changed, 29 insertions(+), 29 deletions(-) diff --git a/android/android_grpc_library.bzl b/android/android_grpc_library.bzl index 6cc95c7d..58ecc7bc 100644 --- a/android/android_grpc_library.bzl +++ b/android/android_grpc_library.bzl @@ -11,7 +11,7 @@ def android_grpc_library(name, **kwargs): name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/android/android_proto_library.bzl b/android/android_proto_library.bzl index 510b0f91..ffa31729 100644 --- a/android/android_proto_library.bzl +++ b/android/android_proto_library.bzl @@ -11,7 +11,7 @@ def android_proto_library(name, **kwargs): name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/c/c_proto_library.bzl b/c/c_proto_library.bzl index 506061bb..ee33ebdc 100644 --- a/c/c_proto_library.bzl +++ b/c/c_proto_library.bzl @@ -11,7 +11,7 @@ def c_proto_library(name, **kwargs): # buildifier: disable=function-docstring name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/cpp/cpp_grpc_library.bzl b/cpp/cpp_grpc_library.bzl index 03e84eed..79ca2005 100644 --- a/cpp/cpp_grpc_library.bzl +++ b/cpp/cpp_grpc_library.bzl @@ -11,7 +11,7 @@ def cpp_grpc_library(name, **kwargs): # buildifier: disable=function-docstring name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/cpp/cpp_proto_library.bzl b/cpp/cpp_proto_library.bzl index bd6b4987..46a39520 100644 --- a/cpp/cpp_proto_library.bzl +++ b/cpp/cpp_proto_library.bzl @@ -11,7 +11,7 @@ def cpp_proto_library(name, **kwargs): # buildifier: disable=function-docstring name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/csharp/csharp_grpc_library.bzl b/csharp/csharp_grpc_library.bzl index fea63b85..3ed138e9 100644 --- a/csharp/csharp_grpc_library.bzl +++ b/csharp/csharp_grpc_library.bzl @@ -11,7 +11,7 @@ def csharp_grpc_library(name, **kwargs): name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/csharp/csharp_proto_library.bzl b/csharp/csharp_proto_library.bzl index acf6a91f..553f39d0 100644 --- a/csharp/csharp_proto_library.bzl +++ b/csharp/csharp_proto_library.bzl @@ -11,7 +11,7 @@ def csharp_proto_library(name, **kwargs): name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/d/d_proto_library.bzl b/d/d_proto_library.bzl index d1b151ee..ecebdde4 100644 --- a/d/d_proto_library.bzl +++ b/d/d_proto_library.bzl @@ -11,7 +11,7 @@ def d_proto_library(name, **kwargs): name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/fsharp/fsharp_grpc_library.bzl b/fsharp/fsharp_grpc_library.bzl index b7bee4de..a118da1f 100644 --- a/fsharp/fsharp_grpc_library.bzl +++ b/fsharp/fsharp_grpc_library.bzl @@ -11,7 +11,7 @@ def fsharp_grpc_library(name, **kwargs): name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/fsharp/fsharp_proto_library.bzl b/fsharp/fsharp_proto_library.bzl index 61cbefa3..71469b0d 100644 --- a/fsharp/fsharp_proto_library.bzl +++ b/fsharp/fsharp_proto_library.bzl @@ -11,7 +11,7 @@ def fsharp_proto_library(name, **kwargs): name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/java/java_grpc_library.bzl b/java/java_grpc_library.bzl index 2544b7bd..26abdae5 100644 --- a/java/java_grpc_library.bzl +++ b/java/java_grpc_library.bzl @@ -11,7 +11,7 @@ def java_grpc_library(name, **kwargs): name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/java/java_proto_library.bzl b/java/java_proto_library.bzl index 6afabe56..2fcb8d42 100644 --- a/java/java_proto_library.bzl +++ b/java/java_proto_library.bzl @@ -11,7 +11,7 @@ def java_proto_library(name, **kwargs): name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/js/js_grpc_node_library.bzl b/js/js_grpc_node_library.bzl index 990ab413..f0c21d54 100644 --- a/js/js_grpc_node_library.bzl +++ b/js/js_grpc_node_library.bzl @@ -11,7 +11,7 @@ def js_grpc_node_library(name, **kwargs): name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/js/js_grpc_web_library.bzl b/js/js_grpc_web_library.bzl index 1d3feb82..6981bcd9 100644 --- a/js/js_grpc_web_library.bzl +++ b/js/js_grpc_web_library.bzl @@ -11,7 +11,7 @@ def js_grpc_web_library(name, **kwargs): name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/js/js_proto_library.bzl b/js/js_proto_library.bzl index 7107fef9..a5a9a8f8 100644 --- a/js/js_proto_library.bzl +++ b/js/js_proto_library.bzl @@ -11,7 +11,7 @@ def js_proto_library(name, **kwargs): name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/objc/objc_grpc_library.bzl b/objc/objc_grpc_library.bzl index 27544314..b7bccae8 100644 --- a/objc/objc_grpc_library.bzl +++ b/objc/objc_grpc_library.bzl @@ -11,7 +11,7 @@ def objc_grpc_library(name, **kwargs): # buildifier: disable=function-docstring name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/objc/objc_proto_library.bzl b/objc/objc_proto_library.bzl index 71c9f0f3..117e7148 100644 --- a/objc/objc_proto_library.bzl +++ b/objc/objc_proto_library.bzl @@ -11,7 +11,7 @@ def objc_proto_library(name, **kwargs): # buildifier: disable=function-docstrin name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/python/python_grpc_library.bzl b/python/python_grpc_library.bzl index 6636d2a3..7c03120d 100644 --- a/python/python_grpc_library.bzl +++ b/python/python_grpc_library.bzl @@ -11,7 +11,7 @@ def python_grpc_library(name, **kwargs): name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/python/python_grpclib_library.bzl b/python/python_grpclib_library.bzl index f5fa5e2e..3c84a03d 100644 --- a/python/python_grpclib_library.bzl +++ b/python/python_grpclib_library.bzl @@ -11,7 +11,7 @@ def python_grpclib_library(name, **kwargs): name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/python/python_proto_library.bzl b/python/python_proto_library.bzl index 2ae0a87d..74555aa0 100644 --- a/python/python_proto_library.bzl +++ b/python/python_proto_library.bzl @@ -11,7 +11,7 @@ def python_proto_library(name, **kwargs): name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/ruby/ruby_grpc_library.bzl b/ruby/ruby_grpc_library.bzl index c76c957b..6d308037 100644 --- a/ruby/ruby_grpc_library.bzl +++ b/ruby/ruby_grpc_library.bzl @@ -11,7 +11,7 @@ def ruby_grpc_library(name, **kwargs): name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/ruby/ruby_proto_library.bzl b/ruby/ruby_proto_library.bzl index 35faadfc..1f5c98fd 100644 --- a/ruby/ruby_proto_library.bzl +++ b/ruby/ruby_proto_library.bzl @@ -11,7 +11,7 @@ def ruby_proto_library(name, **kwargs): name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/rust/rust_grpc_library.bzl b/rust/rust_grpc_library.bzl index be5304e5..43f6e9d1 100644 --- a/rust/rust_grpc_library.bzl +++ b/rust/rust_grpc_library.bzl @@ -13,7 +13,7 @@ def rust_grpc_library(name, **kwargs): # buildifier: disable=function-docstring name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/rust/rust_proto_library.bzl b/rust/rust_proto_library.bzl index c6b0baa4..7dc18637 100644 --- a/rust/rust_proto_library.bzl +++ b/rust/rust_proto_library.bzl @@ -13,7 +13,7 @@ def rust_proto_library(name, **kwargs): # buildifier: disable=function-docstrin name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/scala/scala_grpc_library.bzl b/scala/scala_grpc_library.bzl index 7af9788b..66a663ff 100644 --- a/scala/scala_grpc_library.bzl +++ b/scala/scala_grpc_library.bzl @@ -11,7 +11,7 @@ def scala_grpc_library(name, **kwargs): # buildifier: disable=function-docstrin name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/scala/scala_proto_library.bzl b/scala/scala_proto_library.bzl index 40165cce..ce6b1a9d 100644 --- a/scala/scala_proto_library.bzl +++ b/scala/scala_proto_library.bzl @@ -11,7 +11,7 @@ def scala_proto_library(name, **kwargs): # buildifier: disable=function-docstri name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/swift/swift_grpc_library.bzl b/swift/swift_grpc_library.bzl index 1452055f..e0f05a57 100644 --- a/swift/swift_grpc_library.bzl +++ b/swift/swift_grpc_library.bzl @@ -11,7 +11,7 @@ def swift_grpc_library(name, **kwargs): name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/swift/swift_proto_library.bzl b/swift/swift_proto_library.bzl index a20e2e01..b9894463 100644 --- a/swift/swift_proto_library.bzl +++ b/swift/swift_proto_library.bzl @@ -11,7 +11,7 @@ def swift_proto_library(name, **kwargs): name = name_pb, **{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args diff --git a/tools/rulegen/common.go b/tools/rulegen/common.go index 3de69e49..53305149 100644 --- a/tools/rulegen/common.go +++ b/tools/rulegen/common.go @@ -94,7 +94,7 @@ var compileRuleTemplate = mustTemplate(`load( // When editing, note that Go and gateway do not use this snippet and have their own local version var compileArgsForwardingSnippet = `**{ k: v - or (k, v) in kwargs.items() + for (k, v) in kwargs.items() if k in proto_compile_attrs.keys() or k in bazel_build_rule_common_attrs } # Forward args`