abseil / abseil-py

Abseil Common Libraries (Python)
Apache License 2.0
2.27k stars 246 forks source link

Fix #199: Correctly check `_inherited_absl_flags` by comparing to `None` instead of implicit bool. #260

Closed copybara-service[bot] closed 10 months ago

copybara-service[bot] commented 10 months ago

Fix #199: Correctly check _inherited_absl_flags by comparing to None instead of implicit bool.

The documented contract is to skip absl flags when inherited_absl_flags is passed None. A FlagValues instance without any flags evaluates to False and shouldn't let it skip.