-
-
Notifications
You must be signed in to change notification settings - Fork 175
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 vCategory iterable #610
Labels
feature
good first issue
hacktoberfest
Issues for participation in the hacktoberfest https://hacktoberfest.com/
Comments
niccokunzmann
added
feature
good first issue
hacktoberfest
Issues for participation in the hacktoberfest https://hacktoberfest.com/
labels
Apr 7, 2024
This seems like a good feature, but is the code example correct? Because from: icalendar/src/icalendar/tests/prop/test_unit.py Lines 331 to 339 in 39fef78
It seems So should we work from: from icalendar.prop import vCategory
c = vCategory(vCategory.from_ical("APPOINTMENT,EDUCATION"))
cats = list(c) # new feature
assert cats == ["APPOINTMENT", "EDUCATION"] instead? |
Hi, a list sounds good to me. I think that the documentation should reflect it so that it is clear how to use it.
|
Merged
Fixed in #670. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
feature
good first issue
hacktoberfest
Issues for participation in the hacktoberfest https://hacktoberfest.com/
vCategory is used to list different categories of events. It would be nice to have an easy use of that.
The text was updated successfully, but these errors were encountered: