Allow cls
to be a string of type class name in DataStore._is_subclass()
#803
Labels
Milestone
cls
to be a string of type class name in DataStore._is_subclass()
#803
Is your feature request related to a problem? Please describe.
Currently
DataStore._is_subclass(type_name, cls)
require input argumentcls
to be an entry class. We also want it to support string of fully qualified name of the entry (e.g.,"forte.data.ontology.top.Annotation"
).Describe the solution you'd like
Maybe add some type checking for
cls
and convert it to a class usingget_class()
when it's a string.The text was updated successfully, but these errors were encountered: