Skip to content

Conversation

@nathanthorpe
Copy link
Contributor

@nathanthorpe nathanthorpe commented Jul 22, 2025

Check if it's an instance of DatasetWithShare first

@nathanthorpe nathanthorpe requested a review from a team July 22, 2025 22:39
@sonarqubecloud
Copy link


def _format_share(dataset: DatasetWithShare) -> str:
return f'({dataset.share.name})' if dataset.share else ''
def _format_share(dataset: Dataset | DatasetWithShare) -> str:
Copy link
Contributor

Choose a reason for hiding this comment

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

I would have thought the parent class of Dataset is all that is needed here.

@nathanthorpe nathanthorpe merged commit e5d32a6 into main Jul 24, 2025
10 checks passed
@nathanthorpe nathanthorpe deleted the allow-cli-to-work-with-non-shared-datasets branch July 24, 2025 21:22
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