Copilot commented on code in PR #18162:
URL: https://github.com/apache/iotdb/pull/18162#discussion_r3549625008
##########
iotdb-core/ainode/iotdb/ainode/core/config.py:
##########
@@ -466,13 +466,22 @@ def load_properties(filepath, sep="=", comment_char="#"):
def parse_endpoint_url(endpoint_url: str) -> TEndPoint:
"""Parse TEndPoint from a given endpoint url.
Args:
- endpoint_url: an endpoint url, format: ip:port
+ endpoint_url: an endpoint url, format: host:port or [ipv6]:port
Returns:
TEndPoint
Raises:
BadNodeUrlError
"""
Review Comment:
The docstring says this function raises `BadNodeUrlError`, but the
implementation raises `BadNodeUrlException` (imported at the top of the file).
This mismatch can confuse callers and readers; update the docstring to reflect
the actual exception type (or change the code to raise the documented one).
--
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]