imzs opened a new issue, #1005: URL: https://github.com/apache/rocketmq-clients/issues/1005
### Before Creating the Bug Report - [x] I found a bug, not just asking a question, which should be created in [GitHub Discussions](https://github.com/apache/rocketmq-clients/discussions). - [x] I have searched the [GitHub Issues](https://github.com/apache/rocketmq-clients/issues) and [GitHub Discussions](https://github.com/apache/rocketmq-clients/discussions) of this repository and believe that this is not a duplicate. - [x] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ. ### Programming Language of the Client Python ### Runtime Platform Environment ```python message.body = 'hello world'.encode() @body.setter def body(self, body): if body is None or body.strip() == "": ``` E BytesWarning: Comparison between bytes and string The body is expected to be a bytes object, while the comparison between bytes and str does not cause a runtime error, it triggers a warning that may be treated as an error in strict test environments (e.g., when running with -bb or under pytest with warnings-as-errors enabled). ### RocketMQ Version of the Client/Server <= 5.0.6 ### Run or Compiler Version _No response_ ### Describe the Bug . ### Steps to Reproduce . ### What Did You Expect to See? . ### What Did You See Instead? . ### Additional Context _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
