Hi supertokens folks. I have a question about SDK ...
# support-questions-legacy
k
Hi supertokens folks. I have a question about SDK stability for the python code. A lot of (all) the functions that are involved seem very FP inspired and have enumerated return types. Because the "Err" types do not have a common base class, all call sites have to perform something similar to match exhaustiveness.
Copy code
result = call_some_internal_api(..)

if isinstance(result, Ok): 

elif isinstance(result, Err1):

elif isinstance(result, Err2):

else:
 # explode
The question is, is adding a return type to an overridden function considered a breaking change? As a follow-up, how do the authors feel about having all
Err
types inherit from a common
Error
class? Was this considered? What were the considerations?
Copy code
result = call_some_internal_api(..)
if isinstance(result, BaseError):
  # handle unhappy path
2 Views