diff options
author | Abseil Team <absl-team@google.com> | 2022-11-09 14:24:16 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-11-09 14:24:42 -0800 |
commit | 0947bd875717674dfc23aa580d861b8e6f04c758 (patch) | |
tree | 5a3e9a866381bf94f4abeec721d6c330ca4ece38 | |
parent | be755cb76df0aa7f11bb34c3712d9913a89c45fd (diff) | |
download | absl-py-0947bd875717674dfc23aa580d861b8e6f04c758.tar.gz |
Export `set_default` in `flags/__init__.pyi`.
This method is defined in `_defines.pyi`, but since it's not exported in `__init__.pyi`, type checkers will complain when users call `flags.set_default(...)`.
PiperOrigin-RevId: 487346934
Change-Id: Idf7cffc37cea1c98362d5ea6242b4e85089f13c9
-rw-r--r-- | absl/flags/__init__.pyi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/absl/flags/__init__.pyi b/absl/flags/__init__.pyi index 4eee59e..7bf6842 100644 --- a/absl/flags/__init__.pyi +++ b/absl/flags/__init__.pyi @@ -52,6 +52,9 @@ mark_flags_as_required = _validators.mark_flags_as_required mark_flags_as_mutual_exclusive = _validators.mark_flags_as_mutual_exclusive mark_bool_flags_as_mutual_exclusive = _validators.mark_bool_flags_as_mutual_exclusive +# Flag modifiers. +set_default = _defines.set_default + # Key flag related functions. declare_key_flag = _defines.declare_key_flag adopt_module_key_flags = _defines.adopt_module_key_flags |