Commit e5f0e7a
committed
Fix too strict typing of view functions in decorators
View functions can have additional parameters if the URL has parameters.
Currently these are not allowed by the typing even though the code
itself handles them just fine.
Expand the view type to match what django-stubs is using e.g. here:
https://github.com/typeddjango/django-stubs/blob/fb310b1b0b40c666c156f0943804f3791ff48f95/django-stubs/urls/conf.pyi#L181 parent c6ed796 commit e5f0e7a
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments