In Python, Is there a way to get list of attributes required to initialize an object of a class?
For e.g. I have below class:
class MyClass:
def __init__(self, a, b, c):
self.a = a
self.b = b
self.c = c
And I would like to get,
['a', 'b', 'c'] # These are required to initialize MyClass instance.
may be with the help of,
<something>(MyClass)
Or,
MyClass.<something>
There is a discussion to get list of attributes from an object. List attributes of an object But I would like to know, are there any ways to get list of attributes required to initialize an object?