You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The VariableFactory just requires the create_variable method and dims attribute to a class. However, if the class has to_dict and is registered for deserialize function, then that gives the additional benefit of serialization and deserialization. I don't know the best way to type this or if it is even an issue
Maybe there a protocol with optional methods? or something like below should also be specified:
The
VariableFactory
just requires thecreate_variable
method anddims
attribute to a class. However, if the class hasto_dict
and is registered fordeserialize
function, then that gives the additional benefit of serialization and deserialization. I don't know the best way to type this or if it is even an issueMaybe there a protocol with optional methods? or something like below should also be specified:
The text was updated successfully, but these errors were encountered: