Skip to content

Commit

Permalink
Finish removing --chex-overlay.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 404858258
  • Loading branch information
rchen152 committed Oct 21, 2021
1 parent 9b4732e commit d5b7488
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions pytype/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,6 @@ def add_infrastructure_options(o):
"-Z", "--quick", action="store_true",
dest="quick", default=None,
help=("Only do an approximation."))
o.add_argument(
"--chex-overlay", action="store_true",
dest="chex_overlay", default=True,
help="Temporary flag to aid the release of an overlay for chex.dataclass")


def add_debug_options(o):
Expand Down
1 change: 0 additions & 1 deletion pytype/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ def setUp(self):
self.options = config.Options.create(python_version=self.python_version,
allow_recursive_types=True,
bind_properties=True,
chex_overlay=True,
use_enum_overlay=True)

@property
Expand Down
3 changes: 0 additions & 3 deletions pytype/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1553,9 +1553,6 @@ def _maybe_load_overlay(self, name):
"""Check if a module path is in the overlay dictionary."""
if name not in overlay_dict.overlays:
return None
if name == "chex" and not self.ctx.options.chex_overlay:
# TODO(b/185807105): Enable --chex-overlay by default.
return None
if name in self.loaded_overlays:
overlay = self.loaded_overlays[name]
else:
Expand Down

0 comments on commit d5b7488

Please sign in to comment.