Pr0Beginner commented on PR #1474:
URL: https://github.com/apache/flink-agents/pull/1474#issuecomment-7343606445

   Thanks for the review, @wenjin272! I've updated the PR to address all 
comments:
   
   1. **Python 3.10 `exceptiongroup` compatibility**: Added support for 
`exceptiongroup.BaseExceptionGroup` alongside the built-in 
`BaseExceptionGroup`, and updated the exception-group test to exercise the 
backport on Python 3.10 (verified on both Python 3.10 and 3.12).
   2. **Java-to-Python camelCase arguments**: Added `AliasChoices` validation 
aliases (`maxRetries`, `initialBackoff`, `maxBackoff`) on `MCPServer` and added 
a test covering the `ResourceDescriptor` -> `PythonResourceProvider` path.
   3. **Simplified exception classification**: Replaced string-message matching 
with `exc.error.code == httpx.codes.REQUEST_TIMEOUT` (`408`) for `McpError` 
timeouts while keeping exception-group and exception-chain handling.
   4. **Simplified Pydantic validation**: Switched `max_retries` to 
`Field(ge=0, strict=True)` (removing `validate_max_retries`) and backoff fields 
to `Field(ge=timedelta(0))` so `validate_backoff` only performs 
`parse_duration()`, while retaining the `max_backoff >= initial_backoff` check.
   5. **Ruff check**: Fixed the `UP038` lint issue and verified with 
`ruff==0.11.13`.
   


-- 
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]

Reply via email to