Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

Conversation

@alexlopashev
Copy link

No description provided.

@alexlopashev alexlopashev changed the title alexlopashev/yrs 0.21.3 dep upgrade yrs 0.21.3 dep upgrade Dec 30, 2024
@davidbrochart
Copy link
Collaborator

FYI ypy is not maintained anymore. See pycrdt instead.

@alexlopashev
Copy link
Author

FYI ypy is not maintained anymore. See pycrdt instead.

Hi @davidbrochart, in fact this is PR to revive this library, and I'm volunteered to be new maintainer.

@davidbrochart
Copy link
Collaborator

Maybe ping Kevin in #148?

@alexlopashev
Copy link
Author

Maybe ping Kevin in #148?

I've reached out directly over email couple weeks ago, but good point, will report on the issue as well, thanks!

@alexlopashev
Copy link
Author

@Horusiath @dmonad

Unless there are other suggestions, I believe this change set is ready to be merged and published.


/// Cancels the callback of an observer using the `observation_d` returned from the `observe` method.
pub fn unobserve(&mut self, observation_d: ObservationId) -> PyResult<bool> {
pub fn unobserve(&mut self, observation_d: ObservationId) -> PyResult<()> {

Choose a reason for hiding this comment

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

Wouldn't be better to implement close method on ObservationId? This way you could potentially use it in with statements. Not a single thing in unobserve method requires self to be a param either.

@zswaff
Copy link

zswaff commented Feb 24, 2025

@alexlopashev I love this PR! Merging this (or even a bump to 0.22 now) would be super useful. Is there any way I can help?

ahonko pushed a commit to its-dart/ypy that referenced this pull request Mar 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants