frequenz-floss / frequenz-channels-python

Channel implementations for Python
https://frequenz-floss.github.io/frequenz-channels-python/
MIT License
7 stars 8 forks source link

Improve generics usage #282

Closed llucax closed 7 months ago

llucax commented 7 months ago

This PR makes some improvements related to generic types.

It adds public generic type vars so the documentation is rendered more nicely and we get documentation on the type parameters.

It also extends the use of covariance for other classes or functions that work like containers that don't change the underlying data, so they can be used more flexibly.

llucax commented 7 months ago

Based on, only the last 8 commits are relevant:

llucax commented 7 months ago

Rebased to the current base branch.

llucax commented 7 months ago

Enabled auto-merge.