Put python object definition and assignment on same line (#3057)

Where there was an object initialization immediately followed by
assignment I condensed it to one line, which seems to be the convention
looking at other files. I also deleted the repetition of 'of' in some
c++ comments because it was grammatically incorrect.

---------

Co-authored-by: Clayton Gearhart <claytongearhart240@gmail.com>
This commit is contained in:
Clayton Gearhart
2023-08-14 07:38:02 +00:00
committed by GitHub
co-authored by Clayton Gearhart
parent da35a9806a
commit 3628e22ca2
3 changed files with 8 additions and 8 deletions
+4 -3
View File
@@ -251,9 +251,10 @@ def main() -> None:
external_rules = get_rules(bazel, external_repo_query, True)
print("Building header map...")
header_to_rule_map: Dict[str, Set[str]] = {}
header_to_rule_map["gmock/gmock.h"] = {"@com_google_googletest//:gtest"}
header_to_rule_map["gtest/gtest.h"] = {"@com_google_googletest//:gtest"}
header_to_rule_map: Dict[str, Set[str]] = {
"gmock/gmock.h": {"@com_google_googletest//:gtest"},
"gtest/gtest.h": {"@com_google_googletest//:gtest"},
}
map_headers(header_to_rule_map, carbon_rules)
map_headers(header_to_rule_map, external_rules)