Skip to content

✨Add COM Energieherkunft#238

Merged
hf-aschloegl merged 12 commits intomasterfrom
com-energieherkunft
Dec 8, 2021
Merged

✨Add COM Energieherkunft#238
hf-aschloegl merged 12 commits intomasterfrom
com-energieherkunft

Conversation

@hf-aschloegl
Copy link
Copy Markdown
Collaborator

Fixes #157

Comment on lines +24 to +25
erzeugungsart: Erzeugungsart = attr.ib(validator=attr.validators.in_(Erzeugungsart))
anteil_prozent: Decimal = attr.ib(validator=attr.validators.instance_of(Decimal))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docstrings

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hf-aschloegl hf-aschloegl requested review from a team and hf-fvesely December 8, 2021 15:44
#: Art der Erzeugung der Energie.
erzeugungsart: Erzeugungsart = attr.ib(validator=attr.validators.in_(Erzeugungsart))
#: Prozentualer Anteil der jeweiligen Erzeugungsart.
anteil_prozent: Decimal = attr.ib(validator=attr.validators.instance_of(Decimal))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kannste da noch prüfen, dass es 0<=anteil_prozent<=100 ist?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hf-aschloegl hf-aschloegl merged commit 59ba689 into master Dec 8, 2021
@hf-aschloegl hf-aschloegl deleted the com-energieherkunft branch December 8, 2021 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement COM Energieherkunft

2 participants