Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@

## Summary

This is the initial release, extracted from the [SDK v1.0.0rc601](https://github.com/frequenz-floss/frequenz-sdk-python/releases/tag/v1.0.0-rc601).
Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't remove this until we release v1.0.0, we can add that it is based on that code but with some updates.

- This is the initial release, extracted from the [SDK v1.0.0rc601](https://github.com/frequenz-floss/frequenz-sdk-python/releases/tag/v1.0.0-rc601).

## Upgrading

<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->

## New Features

- Added support for `__round__` (`round(quantity)`), `__pos__` (`+quantity`) and `__mod__` (`quantity % quantity`) operators.
- Add `QuantityT` type alias for `Quantity` and `QuantityLike` types.
Copy link
Contributor

Choose a reason for hiding this comment

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

What is QuantityLike?


## Bug Fixes

<!-- Here goes notable bug fixes that are worth a special mention or explanation -->
16 changes: 15 additions & 1 deletion src/frequenz/quantities/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
```
"""

from typing import TypeVar

from ._current import Current
from ._energy import Energy
Expand All @@ -86,13 +87,26 @@
from ._temperature import Temperature
from ._voltage import Voltage

__all__ = [
QuantityT = TypeVar(
"QuantityT",
"Quantity",
"Current",
"Energy",
"Frequency",
"Percentage",
"Power",
"Temperature",
"Voltage",
)

__all__ = [
"QuantityT",
"Quantity",
"Current",
"Energy",
"Frequency",
"Percentage",
"Power",
"Temperature",
"Voltage",
]
Loading