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 more typing issues #313

Merged
merged 8 commits into from
May 15, 2023
Merged

Fix more typing issues #313

merged 8 commits into from
May 15, 2023

Conversation

sergei-encord
Copy link
Collaborator

No description provided.

@github-actions
Copy link

github-actions bot commented May 12, 2023

Unit test report

100 tests   89 ✔️  8s ⏱️
    1 suites  11 💤
    1 files      0

Results for commit ad6f2b6.

♻️ This comment has been updated with latest results.

elif orm_class == DicomSeries:
return "application/dicom"
else:
raise RuntimeError(f"Unsupported type `{orm_class}`")
Copy link
Contributor

Choose a reason for hiding this comment

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

This is ValueError I think

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch, thanks!

@@ -218,11 +218,23 @@ def ontology_object_to_dict(self, ontology_object: OntologyObject) -> Dict:
"featureNodeHash": ontology_object.feature_node_hash,
}

def __ontology_classification_options_to_dict(
self, options: Optional[Iterable[ClassificationOption]]
) -> Optional[List[Dict]]:
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this ever return None? I don't think so?

@sergei-encord sergei-encord merged commit 6de3c1f into master May 15, 2023
@sergei-encord sergei-encord deleted the fix-more-typing-issues branch May 15, 2023 16:47
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