Created
September 2, 2019 13:28
-
-
Save inesp/9239a6e6e7eb2c8e70e7e19d2e7a96ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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