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
It looks like #9917 added the -> str return type to these functions, but the documentation indicates that may return bytes:
Return a string or byte string containing the XML represented by the DOM node.
With an explicit encoding 1 argument, the result is a byte string in the specified encoding. With no encoding argument, the result is a Unicode string, and the XML declaration in the resulting string does not specify an encoding. Encoding this string in an encoding other than UTF-8 is likely incorrect, since UTF-8 is the default encoding of XML.
This small example seems to confirm that it can return bytes:
It looks like #9917 added the
-> str
return type to these functions, but the documentation indicates that may returnbytes
:This small example seems to confirm that it can return
bytes
:The text was updated successfully, but these errors were encountered: