Closed as not planned
Description
Is your feature request related to a problem? Please describe.
My use case is, when overriding some methods with lot of arguments, i use args and kwargs
, and pass them without changes.
class Book(models.Model)
...
def save(self, *args, **kwargs):
super().save(*args, **kwargs)
I have considered using https://stackoverflow.com/questions/71968447/python-typing-copy-kwargs-from-one-function-to-another but probably this is better solved by inferring.
Describe the solution you’d like
If base class already has all arguments defined in superclass, pyright can infer args/kwargs.
MyPy has this issue, but they aren't added it yet: python/mypy#10079
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment