You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: Unexpected keyword argument "depth" for "timesince"
env/lib/python3.10/site-packages/django-stubs/utils/timesince.pyi:7: note: "timesince" defined here
Bug report
What's wrong
My code looks like this:
When I run mypy, I see the following error:
It looks like the
depth
argument was added at django 3.2: django/django@8fa9a6dThe django-stubs definition doesn’t include the
depth
argument:django-stubs/django-stubs/utils/timesince.pyi
Lines 7 to 9 in 4e3f9d6
How it should be
I guess the timesince definition should look like this:
The same issue applies to utils.timesince.timeuntil.
System information
python
version: 3.10django
version: 3.2mypy
version: 0.941django-stubs
version: 1.10.0The text was updated successfully, but these errors were encountered: