Skip to content

Conversation

@cbornet
Copy link
Collaborator

@cbornet cbornet commented Aug 27, 2024

No description provided.

@cbornet cbornet requested a review from hemidactylus August 27, 2024 16:15
try:
# any non-zero counts as true:
return int(os.environ["NVIDIA_VECTORIZE_AVAILABLE"]) != 0
except (TypeError, ValueError):
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t think it can be TypeError

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then I would do ˋreturn int(os.getenv(NVIDIA, "0"))ˋ and remove the if clause.

@hemidactylus hemidactylus merged commit 80a0b70 into main Aug 28, 2024
@hemidactylus hemidactylus deleted the ruff-rules-ble branch August 28, 2024 18:30
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.

3 participants