Skip to content

Instantly share code, notes, and snippets.

@inesp
Created September 2, 2019 13:21
Show Gist options
  • Save inesp/aceafca7adc2d25fdfe25539929ba103 to your computer and use it in GitHub Desktop.
Save inesp/aceafca7adc2d25fdfe25539929ba103 to your computer and use it in GitHub Desktop.
TCityName = str
class ZOOsConfigBuilder:
def get_configs(self) -> Dict[TCityName, ZooConfiguration]:
return {
"paris": ZooConfiguration(
is_open_to_public=True,
get_config=self:_build_paris_config(["girrafe", "lion", "ape"]),
),
"vienna": ZooConfiguration(
is_open_to_public=True,
get_config=self._build_vienna_config(["elephant", "tucan"]),
),
....
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment