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

Add better detection and error messages for len compatible types in FURB115 #331

Merged
merged 1 commit into from
Mar 2, 2024

Conversation

dosisod
Copy link
Owner

@dosisod dosisod commented Mar 2, 2024

Previously dict_keys() and dict_values() objects where not type deducable by Refurb, and now they are. In addition, chained calls like len(list(d)) are able to be simplified down to just d.

Closes #330.

…URB115:

Previously `dict_keys()` and `dict_values()` objects where not type deducable
by Refurb, and now they are. In addition, chained calls like `len(list(d))`
are able to be simplified down to just `d`.

Closes #330.
@dosisod dosisod merged commit 43c63c8 into master Mar 2, 2024
3 checks passed
@dosisod dosisod deleted the fix-issue-330 branch March 2, 2024 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement]: extra list cast when calling len
1 participant