Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Silence some pytype errors.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 572160034
  • Loading branch information
rchen152 authored and copybara-github committed Oct 10, 2023
1 parent b232978 commit 850494a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/tags_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def __init__(self, file_path: str, required_top_keys: AbstractSet[str],
self._file_path = file_path
self.required_top_keys = required_top_keys
self.optional_top_keys = optional_top_keys
self.supported_top_keys = set.union(self.required_top_keys,
self.supported_top_keys = set.union(self.required_top_keys, # pytype: disable=wrong-arg-types
self.optional_top_keys)

@classmethod
Expand Down
2 changes: 1 addition & 1 deletion tools/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def id(self) -> str:
@property
def supported_metadata(self) -> AbstractSet[str]:
"""Return which metadata tags are supported."""
return set.union(self._required_metadata, self._optional_metadata)
return set.union(self._required_metadata, self._optional_metadata) # pytype: disable=wrong-arg-types

def get_allowed_file_paths(self, documentation_dir: str) -> Sequence[str]:
"""Returns the paths at which the documentation can be stored.
Expand Down

0 comments on commit 850494a

Please sign in to comment.