Skip to content

Instantly share code, notes, and snippets.

@inesp
Created September 2, 2019 13:28
Show Gist options
  • Save inesp/9239a6e6e7eb2c8e70e7e19d2e7a96ad to your computer and use it in GitHub Desktop.
Save inesp/9239a6e6e7eb2c8e70e7e19d2e7a96ad to your computer and use it in GitHub Desktop.
class City:
name: str = "vienna"
def create_zoo(self, owner_name: str) -> Optional[Zoo]:
zoo_configs: Dict[
str, ZooConfiguration
] = ZOOsConfigBuilder().get_configs()
config = zoo_configs.get(self.name)
if not config or not config.is_open_to_public:
return None
zoo_outline: ZooOutline = config.get_config(owner_name, size=130)
return Zoo(zoo_outline)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment