I have some auto generated code which defines lots of classes with common properties, e.g. Unfortunately, they have no baseclass, interface etc.
class A:
errors = []
class B
errors = []
how can I describe a type for that? I cannot easily change all these types.
def validate(obj: ???):
if errors:
raise Exception("something wrong")