Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Light cleanup of
GenerationStrategyInterface
(#2256)
Summary: Pull Request resolved: #2256 Key changes: 1. bring back to GS aspects of GSI that are not needed there and are polluting the interface, 2. make `_name` a required attribute of both GSI and GS. Re: 2), having it be set during the first call to `name` property was causing weird bugs in equality checks, there two GSs looked like they were equal but they weren't at the time of the initial equality check (one had the `_name` set because its `name` prop was called, and another did not yet). They would become equal during the call to `__repr__` that occurred in reporting their inequality as an error (!), because `__repr__` would call `GS.name`, which would result in `GS._name` getting set. Weird stuff! Reviewed By: danielcohenlive, mgarrard Differential Revision: D51441575 fbshipit-source-id: 44908f30be2f93be4713c06bd81777d3e6235d43
- Loading branch information