Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[preview][E302] False positive in overload when comment added #11331

Closed
randolf-scholz opened this issue May 8, 2024 · 0 comments · Fixed by #11342
Closed

[preview][E302] False positive in overload when comment added #11331

randolf-scholz opened this issue May 8, 2024 · 0 comments · Fixed by #11342
Assignees
Labels
bug Something isn't working preview Related to preview mode features

Comments

@randolf-scholz
Copy link

@overload
def arrow_strip_whitespace(obj: Table, /, *cols: str) -> Table: ...
@overload
def arrow_strip_whitespace(obj: Array, /, *cols: str) -> Array: ...  # type: ignore[misc]
def arrow_strip_whitespace(obj, /, *cols):
    ...

This raises E302 on the line def arrow_strip_whitespace(obj, /, *cols). If I remove the type-ignore comment, it does not flag it anymore.

https://play.ruff.rs/cfc09a7a-1e90-4254-8e16-827aebd143c9

@MichaReiser MichaReiser added bug Something isn't working preview Related to preview mode features labels May 8, 2024
@charliermarsh charliermarsh self-assigned this May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working preview Related to preview mode features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants