There is a Class from a third party lib I am using.
def funcA(base):
class ClassA(base):
def __init__(self, obj):
....
I have an instance of ClassA a
type(a)
# prints <class 'path.to.module.funcA.<locals>.ClassA'>
How can I check if a variable is an instance of ClassA? I am not sure how to reference ClassA since it is under a function....
import module
isinstance(a, module.funcA.ClassA?) <--- how to reference ClassA?