<div dir="ltr"><div>Hi!</div><div><br></div><div>***Disclaimer: I am relatively new to Python***<br></div><div><br></div><div>I propose to add some mechanism that can automatically collect everything what would normally be collected by **kwargs in the __init__ method and directly pass it through to the super().__init__ call without being accessible in the __init__ itself. This way the autocompletion/docstring generation could safely ignore this argument which before would have showed up as **kwargs.</div><div><br></div><div>I believe that this could greatly enhance the readability of automated documentation and especially the autocomplete of an IDE.</div><div><br></div><div>I would like something like this to work:</div><div><br></div><div>    class A:</div><div>        @pass_through_kwargs  # like this? Or maybe  __init__(self, a_value, ***pass_through_kwargs)?</div><div>        def __init__(self, a_value):</div><div>            super().__init__()  # <- realize that nothing is passed in here</div><div><br></div><div>    class B:</div><div>        def __init__(self, some_value):</div><div>            pass</div><div><br></div><div>    class MyClass(A, B):</div><div>        def __init__(self):</div><div>            super().__init__(a_value=1, some_value=2)</div><div><br></div><div>Where the autocomplete of `A(` shows me just `A(a_value)`. The pass_through_kwargs can safely be ignored, since it is not "a real input" of A. It is automatically merged with the parameters of the `super(A, self).__init__()` call. How exactly this should be done would have to be discussed in more detail (I guess the actual values should probably override the passed through ones).</div><div><br></div><div>With the current python version the code would have looked like</div><div><br></div><div>    class A:</div><div>        def __init__(self, a_value, **kwargs):</div><div>            super().__init__(**kwargs)</div><div><br></div><div>But the user could have had the false impression that additional kwargs could be given when instantiating A. Obviously they are purely there for getting the init in the MRO working with multiple inheritance.</div><div><br></div><div>One could also add something like pass_through_args as well but the usability of that is probably much more limited.</div><div><br></div><div>Could this even work in theory? I guess it might be quite tricky since `super().__init__` doesn't even have to be called. If that would be the case: should it be called automatically if pass_through_kwargs were given after the init is done?</div><div><br></div><div><br></div><div>By the way: Thank you all for this amazing language!</div><div>Cheers, Michael</div></div>