-
-
Notifications
You must be signed in to change notification settings - Fork 516
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug report
What's wrong
It seams suspicious to me, that the default parameter of django.db.models.functions.window.LagLeadFunction (django-stubs/db/models/functions/window.pyi:15) shall be an int.
The documentation says:
class Lag(expression, offset=1, default=None, **extra)Calculates the value offset by offset, and if no row exists there, returns default.
defaultmust have the same type as the expression, however, this is only validated by the database and not in Python.
How is that should be
I would expect something like Expression, maybe ...
System information
- OS: Linux
pythonversion: 3.13.7djangoversion: 5.2.5mypyversion: 1.17.1django-stubsversion: 5.2.2django-stubs-extversion: 5.2.2
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working