Adjust indentation of TODOs in third_party/2/gflags.pyi. (#2964)

Having TODOs at a different level of indentation than
the surrounding lines trips up pytype.
This commit is contained in:
Rebecca Chen
2019-05-06 22:05:17 -04:00
committed by GitHub
parent e4a81132c4
commit a6d92eca10
2 changed files with 3 additions and 4 deletions

View File

@@ -9,7 +9,6 @@ stdlib/3/typing.pyi
# third_party stubs with constructs that pytype doesn't yet support:
third_party/2/fb303/FacebookService.pyi
third_party/2/gflags.pyi
third_party/2/scribe/scribe.pyi
third_party/2/tornado/gen.pyi
third_party/2/tornado/httpserver.pyi

View File

@@ -34,7 +34,7 @@ class FlagValues:
def UseGnuGetOpt(self, use_gnu_getopt: bool = ...) -> None: ...
def is_gnu_getopt(self) -> bool: ...
IsGnuGetOpt = is_gnu_getopt
# TODO dict type
# TODO dict type
def FlagDict(self) -> dict: ...
def flags_by_module_dict(self) -> Dict[str, List[Flag]]: ...
FlagsByModuleDict = flags_by_module_dict
@@ -83,7 +83,7 @@ class FlagValues:
AppendFlagsIntoFile = append_flags_into_file
def write_help_in_xml_format(self, outfile: IO[str] = ...) -> None: ...
WriteHelpInXMLFormat = write_help_in_xml_format
# TODO validator: gflags_validators.Validator
# TODO validator: gflags_validators.Validator
def AddValidator(self, validator: Any) -> None: ...
FLAGS: FlagValues
@@ -113,7 +113,7 @@ class Flag:
class ArgumentParser(object):
syntactic_help: str
# TODO what is this
# TODO what is this
def parse(self, argument: Any) -> Any: ...
Parser = parse
def flag_type(self) -> str: ...