Skip to content

Instantly share code, notes, and snippets.

@inesp
Last active September 2, 2019 13:20
Show Gist options
  • Save inesp/639086240a28d8def032c58743f40fe1 to your computer and use it in GitHub Desktop.
Save inesp/639086240a28d8def032c58743f40fe1 to your computer and use it in GitHub Desktop.
ZooConfiguration dataclass
from dataclasses import dataclass
from typing import Callable, Dict
TZooOwnerName = str
TZooSize = int
@dataclass
class ZooConfiguration:
is_open_to_public: bool
get_config: Callable[[TZooOwnerName, TZooSize], Dict]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment