-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enums for miscellaneous card parts #87
Conversation
Should the changes needed for Card and CardModel go in this PR too as part of the change? |
I was planning for that to be a separate PR after #80 is merged, as that's touching a whole lot of things in the same areas and I'd like to keep that merge clean. |
src/scooze/card.py
Outdated
set_name: str = "", | ||
set_search_uri: str = "", | ||
set_type: str = "", | ||
set_type: SetType = "", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SetType.NONE as default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made None
accepted and the default.
src/scooze/enums.py
Outdated
@@ -55,6 +55,18 @@ class Color(ExtendedEnum, StrEnum): | |||
GREEN = "G" | |||
|
|||
|
|||
class Component(ExtendedEnum, StrEnum): | |||
""" | |||
A type of related object, used in Scryfall to link a card to other cards or tokens referenced by it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line length
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
src/scooze/enums.py
Outdated
@@ -106,6 +162,75 @@ class Game(ExtendedEnum, StrEnum): | |||
MTGO = auto() | |||
|
|||
|
|||
class ImageStatus(ExtendedEnum, StrEnum): | |||
""" | |||
An indicator for whether a card's image exists on Scryfall, and how high quality the sourced image is. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line length.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
src/scooze/enums.py
Outdated
@@ -147,6 +272,50 @@ class ScryfallBulkFile(ExtendedEnum, StrEnum): | |||
# TODO(#26): support for Rulings file | |||
|
|||
|
|||
class SecurityStamp(ExtendedEnum, StrEnum): | |||
""" | |||
A holographic security stamp printed on the bottom of some Magic cards, generally rares and mythics. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line length
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
src/scooze/models/cardparts.py
Outdated
default=None, | ||
description="Foil price in Euros, from Cardmarket." | ||
) | ||
eur_foil: float | None = Field(default=None, description="Foil price in Euros, from Cardmarket.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting
Component
Frame
FrameEffect
ImageStatus
Language
Layout
SecurityStamp
SetType