You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] MEMBER / DELEGATED-TO / DELEGATED-FROM set via attributes break to_jcal() and to_xcal() #2076
The MEMBER, DELEGATED-TO and DELEGATED-FROM setters (quoted_list_parameter in src/icalendar/param.py) always store a tuple, even for a single string. The jCal and xCal serialisers only treat list as multi-valued:
Parameters._parameter_value_to_jcal (src/icalendar/parser/parameter.py, isinstance(value, list)) raises TypeError for the tuple.
Parameters.get_multiple wraps the tuple in a list, so xCal output contains the tuple's repr.
to_ical() works, because param_value checks SEQUENCE_TYPES, which includes tuple.
jCal: {"member": "mailto:group@example.com"} (or a one-item list)
Possible fix: treat tuple like list in _parameter_value_to_jcal and get_multiple, for example by checking SEQUENCE_TYPES as param_value does.
Environment
Operating system: macOS 15
Python version: 3.14.8
icalendar version: main @ 22b26c9 (2026-11-08), run from source
Additional context
I tested it with the latest version (main @ 22b26c9).
There is no .ics sample file.
I searched existing issues and PRs ("jcal tuple", "to_jcal MEMBER", "Unsupported parameter value type", "xcal parameter tuple") and found nothing related.
AI disclosure: this issue was found, reproduced and filed by Claude Opus 5.5 (Claude Code) on my behalf, during an audit of parser/parameter.py. The reproduction above was run on main @ 22b26c9 and the output is copied verbatim.
Activity
github-actions commentedon Nov 8, 2026
Thanks for the issue, @patrickballard! A maintainer will review it shortly.
github-actions commentedon Nov 8, 2026
Mixed activity
Activity patterns show a mix of organic and automated signals.
View full analysis →
Evidence
Last 5 PRs:
This is an automated analysis by AgentScan