Repository navigation
Conversation
…ixes PyCalendar#2019) - Add .bytes property to vXml returning UTF-8 encoded bytes - Add unit tests validating vXml.bytes behavior and interface consistency with vBinary.bytes - Add towncrier news fragment news/2019.feature Signed-off-by: Raj Gahoi <gahoiraj01@gmail.com>
|
Thanks for the pull request, @RajGahoi! A maintainer will review it shortly. |
Automation signalsActivity patterns show signs of automation. Evidence
This is an automated analysis by AgentScan |
Signed-off-by: Raj Gahoi <gahoiraj01@gmail.com>
Signed-off-by: Raj Gahoi <gahoiraj01@gmail.com>
Signed-off-by: Raj Gahoi <gahoiraj01@gmail.com>
AI Prompts: claude-opus-5-5: <ide_opened_file>The user opened the file ./Dockerfile in the IDE. This may or may not be related to the current task.</ide_opened_file> PyCalendar/icalendar#2030 First response is incorrect: There was a review. Reviews count as a first response, too. claude-opus-5-5: to the env example add all configuration variables, propertly in sections that can be used with explanation
|
@RajGahoi can you please respond to my question. Otherwise I will close the PR in at least seven days. |
|
Hi @angatha, apologies for the delay! That |
| """The XML text encoded as UTF-8 bytes. | ||
|
|
||
| This provides a consistent interface with :attr:`~icalendar.prop.binary.vBinary.bytes`. | ||
| """ |
There was a problem hiding this comment.
Please add versionadded:: 0.0.0
Signed-off-by: Raj Gahoi <gahoiraj01@gmail.com>
|
Merged latest \main\ to resolve conflicts, kept \docs/conf.py\ untouched, and added .. versionadded:: 0.0.0\ to \�Xml.bytes. Ready for another look, @angatha! |
…ytes Signed-off-by: Raj Gahoi <gahoiraj01@gmail.com>
c1eba94 to
9dfa091
Compare
Signed-off-by: Raj Gahoi <gahoiraj01@gmail.com>
… with vBinary/vXml Signed-off-by: Raj Gahoi <gahoiraj01@gmail.com>
…rence Signed-off-by: Raj Gahoi <gahoiraj01@gmail.com>
|
|
||
| # -- Sphinx logging filters -------------------------------------------------- | ||
| # Suppress known Sphinx ambiguity between built-in bytes and vBinary/vXml.bytes | ||
| class SphinxWarningFilter(logging.Filter): | ||
| def filter(self, record): | ||
| return ( | ||
| "more than one target found for cross-reference 'bytes'" | ||
| not in record.getMessage() | ||
| ) | ||
|
|
||
|
|
||
| logging.getLogger("sphinx").addFilter(SphinxWarningFilter()) | ||
|
|
There was a problem hiding this comment.
@stevepiercy do we wan't this?
@RajGahoi what does it do and when is it relveant?
There was a problem hiding this comment.
No. Suppression does not resolve the issue. This is not acceptable.
Linked issue
Description
This PR implements the requested
.bytesproperty onvXmlto provide interface parity withvBinary.bytes:@property def bytes(self) -> bytesonvXmlreturningself.encode("utf-8").src/icalendar/tests/rfc_6321_xcal/test_xml_property.pyverifying thatvXml.bytesreturns UTF-8 bytes and has consistent behavior withvBinary.bytes.news/2019.feature.Checklist