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

Fix tests #148

Merged
merged 1 commit into from
May 28, 2024
Merged

Fix tests #148

merged 1 commit into from
May 28, 2024

Conversation

angelcaru
Copy link
Contributor

please stop treating optionals as booleans

please stop treating optionals as booleans
@Almas-Ali
Copy link
Member

please stop treating optionals as booleans

Can you please explain this?

@angelcaru
Copy link
Contributor Author

So the code for this project has a lot of:

if not <something that might be a value, or None>:
    <assume that it's None>

Which is bad because a value can evaluate to false without being None. That was the cause of the 2 bugs I fixed, and I wouldn't be surprised if there are more

@Almas-Ali Almas-Ali merged commit 8503174 into radon-project:master May 28, 2024
1 check passed
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.

2 participants