dbrattli / aioreactive

Async/await reactive tools for Python 3.11+
MIT License
346 stars 24 forks source link

distinct_until_changed, not so nice signature? #48

Open SmoothieAq opened 4 months ago

SmoothieAq commented 4 months ago

It has signature def distinct_until_changed( source: AsyncObservable[_TSource], ) -> AsyncObservable[_TSource]

but I would have expected def distinct_until_changed() -> Callable[[AsyncObservable[_TSource]], AsyncObservable[_TSource]]

Seems like a lot of signatures here and there could need some clean-up!???

SmoothieAq commented 4 months ago

Ok, it didn't get the curry_flip. However, PyCharm often gets confused on curry_flip, so not working nice in PyCharm :-(