aboutsummaryrefslogtreecommitdiff
path: root/absl
diff options
context:
space:
mode:
authorYilei Yang <yileiyang@google.com>2021-04-19 12:31:49 -0700
committerCopybara-Service <copybara-worker@google.com>2021-04-19 12:32:17 -0700
commit5206702470497dd371ae75427ab5e8091652ecbb (patch)
tree20f517cd508c378f1abb77c75547cb28cb63d288 /absl
parentfe272923604b47209fdba457d5a5bab7b0de886a (diff)
downloadabsl-py-5206702470497dd371ae75427ab5e8091652ecbb.tar.gz
Add the missing syntactic_help attribute annotation on ArgumentParser
PiperOrigin-RevId: 369277659 Change-Id: I2f77b2b73abebd3cfc6558e0e8088623702d1d5a
Diffstat (limited to 'absl')
-rw-r--r--absl/flags/_argument_parser.pyi3
1 files changed, 3 insertions, 0 deletions
diff --git a/absl/flags/_argument_parser.pyi b/absl/flags/_argument_parser.pyi
index db5f41b..7e78d7d 100644
--- a/absl/flags/_argument_parser.pyi
+++ b/absl/flags/_argument_parser.pyi
@@ -30,6 +30,9 @@ class ArgumentSerializer(Generic[_T]):
# The metaclass of ArgumentParser is not reflected here, because it does not
# affect the provided API.
class ArgumentParser(Generic[_T]):
+
+ syntactic_help: Text
+
def parse(self, argument: Text) -> Optional[_T]: ...
def flag_type(self) -> Text: ...