-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🏷️ Suppress type errors on decorator_include
It's doing a lot of duck-typing and does not play nice with the types defined in django-stubs, which would ideally be protocols rather than named types for these kind of things. However, we let the decorator_include declare the type it wants in the path arguments, and apply a cast around the custom class to silence the remaining type checker warnings. The most important thing here is that the input types for decorator_include are checked and our urls.py modules aren't unusable.
- Loading branch information
1 parent
486d9cb
commit 07ef1ca
Showing
2 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters