Created
September 2, 2019 13:21
-
-
Save inesp/aceafca7adc2d25fdfe25539929ba103 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
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