-
-
Notifications
You must be signed in to change notification settings - Fork 485
BaseModelAdmin should be a generic class #482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
@radowit do you want to work on this? |
I can take a shot at this! |
@vgel awesome! Please, feel free to do so! |
Unfortunately I've been really busy at work and don't think I can do this
task at the moment. I'll try to come back to it later, but in the meantime
if someone else wants to pick it up please feel free. Sorry!
…On Mon, Oct 12, 2020 at 1:25 PM Nikita Sobolev ***@***.***> wrote:
@vgel <https://github.com/vgel> awesome! Please, feel free to do so!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#482 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHPJACEIAPF7JJEDR2UEPLSKNQ3NANCNFSM4SLCO45A>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
What's wrong
I have a class inheriting from
BaseModelAdmin
and a methoddelete_model
defined as such:AgendaItem
is a Django modelHowever, mypy raises an error:
because in stubs this function is defined as:
How is that should be
The solution is to make
BaseModelAdmin
a generic class with model type variable.System information
python
version: 3.8.6django
version: 3.1.2mypy
version: 0.782django-stubs
version: 1.6.0The text was updated successfully, but these errors were encountered: