mirror of
https://github.com/apache/superset.git
synced 2026-07-19 05:05:39 +00:00
fix(charts): add return type annotation to test function
Address CodeAnt AI review comment — add explicit -> None return type annotation to test_extract_dataframe_dtypes_with_duplicate_columns. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
committed by
yousoph
parent
8bc22ba0b8
commit
39aff3eecb
@@ -1830,7 +1830,7 @@ def test_sanitize_cookie_token_rejects_invalid(token: Optional[str]) -> None:
|
||||
assert sanitize_cookie_token(token) is None
|
||||
|
||||
|
||||
def test_extract_dataframe_dtypes_with_duplicate_columns():
|
||||
def test_extract_dataframe_dtypes_with_duplicate_columns() -> None:
|
||||
"""extract_dataframe_dtypes should not crash on duplicate column names."""
|
||||
df = pd.DataFrame([[1, 2, 3]], columns=["a", "b", "a"])
|
||||
result = extract_dataframe_dtypes(df)
|
||||
|
||||
Reference in New Issue
Block a user