-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from wolff01/master
added constants.py and test_constants.py
- Loading branch information
Showing
4 changed files
with
98 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"""Define constants with dataclasses for use in Cellveyor""" | ||
|
||
from dataclasses import dataclass | ||
|
||
|
||
# humanreadable constant | ||
@dataclass(frozen=True) | ||
class Humanreadable: | ||
"""Define the Humanreadable dataclass for constant(s).""" | ||
|
||
Yes: str | ||
No: str | ||
|
||
|
||
humanreadable = Humanreadable(Yes="Yes", No="No") | ||
|
||
|
||
# markers constant | ||
@dataclass(frozen=True) | ||
class Markers: | ||
"""Define the Markers dataclass for constant(s).""" | ||
|
||
Indent: str | ||
Newline: str | ||
|
||
|
||
markers = Markers( | ||
Indent=" ", | ||
Newline="\n", | ||
) |
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
Oops, something went wrong.