mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Add lint for unqualified type: ignore
(#56290)
Summary: The other half of https://github.com/pytorch/pytorch/issues/56272. Pull Request resolved: https://github.com/pytorch/pytorch/pull/56290 Test Plan: CI should pass on the tip of this PR, and we know that the lint works because the following CI runs (before this PR was finished) failed: - https://github.com/pytorch/pytorch/runs/2384511062 - https://github.com/pytorch/pytorch/actions/runs/765036024 Reviewed By: seemethere Differential Revision: D27867219 Pulled By: samestep fbshipit-source-id: e648f07b6822867e70833e23ddafe7fb7eaca235
This commit is contained in:
committed by
Facebook GitHub Bot
parent
87a1ebc9cd
commit
75024e228c
@ -829,7 +829,7 @@ class SummaryWriter(object):
|
||||
metadata, label_img, fs, subdir, global_step, tag)
|
||||
self._projector_config.embeddings.extend([embedding_info])
|
||||
|
||||
from google.protobuf import text_format # type: ignore
|
||||
from google.protobuf import text_format # type: ignore[attr-defined]
|
||||
config_pbtxt = text_format.MessageToString(self._projector_config)
|
||||
write_pbtxt(self._get_file_writer().get_logdir(), config_pbtxt)
|
||||
|
||||
|
Reference in New Issue
Block a user