codeant-ai-for-open-source[bot] commented on code in PR #42004:
URL: https://github.com/apache/superset/pull/42004#discussion_r3572396656
##########
tests/unit_tests/pandas_postprocessing/test_boxplot.py:
##########
@@ -44,6 +47,27 @@ def test_boxplot_tukey():
assert len(df) == 4
+def test_boxplot_mean_median_no_future_warning():
Review Comment:
**Suggestion:** Add an explicit return type annotation to this new test
function signature (for example, `-> None`) to satisfy the type-hint
requirement for newly introduced Python functions. [custom_rule]
**Severity Level:** Minor ๐งน
<details>
<summary><b>Why it matters? โญ </b></summary>
The new test function is missing an explicit return type annotation. Under
the Python type-hint rule, newly introduced functions should be annotated, so
`-> None` should be added here.
</details>
<details>
<summary><b>Rule source ๐ </b></summary>
.cursor/rules/dev-standard.mdc (line 28)
</details>
[](https://app.codeant.ai/fix-in-ide?tool=cursor&prompt_id=6bd8076fff6749a08f18133ce1187130&service=github&base_url=https%3A%2F%2Fgithub.com&org=apache&repo=apache%2Fsuperset)
[](https://app.codeant.ai/fix-in-ide?tool=vscode-claude&prompt_id=6bd8076fff6749a08f18133ce1187130&service=github&base_url=https%3A%2F%2Fgithub.com&org=apache&repo=apache%2Fsuperset)
*(Use Cmd/Ctrl + Click for best experience)*
<details>
<summary><b>Prompt for AI Agent ๐ค </b></summary>
```mdx
This is a comment left during a code review.
**Path:** tests/unit_tests/pandas_postprocessing/test_boxplot.py
**Line:** 50:50
**Comment:**
*Custom Rule: Add an explicit return type annotation to this new test
function signature (for example, `-> None`) to satisfy the type-hint
requirement for newly introduced Python functions.
Validate the correctness of the flagged issue. If correct, How can I resolve
this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask
user if the user wants to fix the rest of the comments as well. if said yes,
then fetch all the comments validate the correctness and implement a minimal fix
```
</details>
<a
href='https://app.codeant.ai/feedback?pr_url=https%3A%2F%2Fgithub.com%2Fapache%2Fsuperset%2Fpull%2F42004&comment_hash=ee0d4b0405931f8059bc93e562fccdc1f4e94df4e9c5f431a1b82a97c953177e&reaction=like'>๐</a>
| <a
href='https://app.codeant.ai/feedback?pr_url=https%3A%2F%2Fgithub.com%2Fapache%2Fsuperset%2Fpull%2F42004&comment_hash=ee0d4b0405931f8059bc93e562fccdc1f4e94df4e9c5f431a1b82a97c953177e&reaction=dislike'>๐</a>
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]