Skip to content

Commit

Permalink
fix: ignore protobuf-generated files during mypy analysis
Browse files Browse the repository at this point in the history
For some cryptic reason, these files were not analyzed by mypy before
  • Loading branch information
raphael0202 committed Oct 12, 2022
1 parent 1b748d2 commit 4de5abe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def load_labelmap(path: str):
"""
with open(path, "r") as fid:
label_map_string = fid.read()
label_map = string_int_label_map_pb2.StringIntLabelMap()
label_map = string_int_label_map_pb2.StringIntLabelMap() # type: ignore
try:
text_format.Merge(label_map_string, label_map)
except text_format.ParseError:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4de5abe

Please sign in to comment.