Skip to content

Conversation

@manopapad
Copy link
Contributor

No description provided.

@manopapad manopapad added the category:bug-fix PR is a bug fix and will be classified as such in release notes label Sep 13, 2023
@manopapad manopapad requested a review from bryevdv September 13, 2023 18:09
if data is not None
else Future
if optimize_scalar and shape is not None and shape.volume() == 1
else RegionField
Copy link
Contributor

Choose a reason for hiding this comment

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

TBH I'd split this up some way, chained ternaries are a bit awkward for people and for black

if (
data is not None
and not isinstance(data, RegionField)
and not isinstance(data, Future)
Copy link
Contributor

Choose a reason for hiding this comment

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

if data and not isinstance(data, (RegionField, Future))

would avoid the black vertical explosion I think

@manopapad manopapad requested a review from bryevdv September 22, 2023 00:21
@manopapad manopapad merged commit a73fb31 into nv-legate:branch-23.09 Sep 22, 2023
manopapad pushed a commit that referenced this pull request Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:bug-fix PR is a bug fix and will be classified as such in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants