-
-
Notifications
You must be signed in to change notification settings - Fork 244
Open
Labels
Description
escape_char in icalendar.parser should also accept bytes.
- Please follow the development setup: https://icalendar.readthedocs.io/en/stable/contribute/development.html
- Please use to_unicode before doing the replacements
- add a test that checks that bytes work
_escape_charis annotated to acceptbytes, but the current replacement chain usesstrpatterns/replacements, which will raiseTypeErroriftextis actuallybytes. Either add abytesbranch (similar to_unescape_char) or restrict the signature/validation tostronly so the type hints match runtime behavior.
Originally posted by @Copilot in #1222
Reactions are currently unavailable