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

RET503 --fix: Does not seem to fix #2781

Closed
cclauss opened this issue Feb 11, 2023 · 0 comments · Fixed by #2962
Closed

RET503 --fix: Does not seem to fix #2781

cclauss opened this issue Feb 11, 2023 · 0 comments · Fixed by #2962
Assignees
Labels
bug Something isn't working

Comments

@cclauss
Copy link
Contributor

cclauss commented Feb 11, 2023

ruff check --select=RET503 --fix .

def get_value_as_int(value):
    if value.isdigit():
        return int(value)

RET503 [*] Missing explicit return at the end of function able to return non-None value

But no fix is made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants