-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
encord/http/utils.py
Outdated
elif orm_class == DicomSeries: | ||
return "application/dicom" | ||
else: | ||
raise RuntimeError(f"Unsupported type `{orm_class}`") |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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]]: |
There was a problem hiding this comment.
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?
a215936
to
4b609f4
Compare
No description provided.