
class SomeDecorator:
	
	def __init__(some_attribute):
		self.some_attribute = some_attribute
		
	def __call__(self, func):
		@wraps(func)
		def inner(*args, **kwargs):
			if isinstance(some_attribute, list):
				self.some_attribute = another_param
			"do some logic"
			
			return func(*args, **kwargs)
		return inner
		
"____________________________________________________________"

@SomeDecorator(some_attribute = [Class1, Class2])
def my_api_function(*args, **kwargs):
	"do some logic"
	return "some object"