Created
December 13, 2020 19:57
-
-
Save gidgid/12c09680ebc897e3a0fd079af42fde99 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
from dataclasses import dataclass | |
class State: | |
"""Represents a possible Circuit Breaker state""" | |
@dataclass | |
class Open(State): | |
pass | |
@dataclass | |
class Closed(State): | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment