Skip to content

Commit

Permalink
Annot might be None (futher generalization)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolay-r committed Jun 15, 2022
1 parent d10ef20 commit c046909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arekit/common/experiment/api/ctx_serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class ExperimentSerializationContext(ExperimentContext):

def __init__(self, label_scaler, annot, name_provider, data_folding):
assert(isinstance(label_scaler, BaseLabelScaler))
assert(isinstance(annot, BaseAnnotator))
assert(isinstance(annot, BaseAnnotator) or annot is None)
super(ExperimentSerializationContext, self).__init__(name_provider=name_provider,
data_folding=data_folding)

Expand Down

0 comments on commit c046909

Please sign in to comment.