Let\'s say I have a simple function like this:
def foo(a: Any): return a.bar + a.baz
I would lik
You need to create a class with those attributes so the object you pass has them in it. I.e.:
class Myclass(): def __init__(self, bar, baz): self.bar = bar self.baz = baz def foo(a: Myclass): return a.bar + a.baz