Skip to content

Conversation

@kaushikcfd
Copy link
Collaborator

See the discussion in #365.

Copy link
Owner

@inducer inducer left a comment

Choose a reason for hiding this comment

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

Thanks! A few follow-ups below, otherwise LGTM!

pytato/array.py Outdated
_mapper_method: ClassVar[str] = "map_data_wrapper"

def __post_init__(self) -> None:
pass
Copy link
Owner

Choose a reason for hiding this comment

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

  • Add a comment to explain?
  • This somehow feels quite broad, in that it assumes that the checks are the only thing happening in __post_init__? This might make more sense if the checks were in a sub-method which could then be selectively neutered? I'm not insisting on this, FWIW, merely raising the question.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added the comment, thanks!

@kaushikcfd kaushikcfd changed the title Implement checks on new array types to avoid developer mishaps Implement checks on new array types to prevent developer mishaps Oct 19, 2022
@inducer inducer enabled auto-merge (rebase) October 19, 2022 19:14
@inducer
Copy link
Owner

inducer commented Oct 19, 2022

Thanks!

@inducer inducer merged commit e9a3299 into main Oct 19, 2022
@inducer inducer deleted the check_eq_attrs branch October 19, 2022 21:33
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