Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make tzicaltvz pickable (fix #1242) #1243

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

daniele-athome
Copy link

@daniele-athome daniele-athome commented Nov 22, 2022

FEEDBACK NEEDED

I'm opening an early pull request to get some feedback. I didn't write tests or news fragment yet because I'd like to know if I'm getting on the right track first. Thank you!

Summary of changes

Make instances of _tzicalvtz (and because of a dependency, also rrulebase) pickable.

Closes #1242

Pull Request Checklist

  • Changes have tests
  • Authors have been added to AUTHORS.md
  • News fragment added in changelog.d. See CONTRIBUTING.md for details

@daniele-athome
Copy link
Author

The change seems to be working at least for my use cases (simple and recurring events from a CalDAV server using python-caldav in Home Assistant). But to fix this I've dismissed an internal cache in rrulebase and I'm not sure it's the right course of action. I'm willing to improve this by adding all the necessary items required for merge but I'd like some feedback on the code first please. Thanks!

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.

tzicaltvz cannot be pickled
1 participant