#70 Messages should allow fields that are Python keywords

This commit is contained in:
boukeversteegh
2020-05-25 23:27:23 +02:00
parent 4b7d5d3de4
commit 3c70f21074
7 changed files with 119 additions and 31 deletions

View File

@@ -36,10 +36,11 @@ def read_relative(file: str, path: str):
return fh.read()
def protoc_plugin(path: str, output_dir: str):
subprocess.run(
def protoc_plugin(path: str, output_dir: str) -> subprocess.CompletedProcess:
return subprocess.run(
f"protoc --plugin=protoc-gen-custom={plugin_path} --custom_out={output_dir} --proto_path={path} {path}/*.proto",
shell=True,
check=True,
)