-
-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix override_settings decorator typing (#1322)
- Loading branch information
1 parent
1c482dc
commit 6d883cd
Showing
2 changed files
with
10 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- case: override_settings | ||
main: | | ||
from django.test import override_settings | ||
from django.conf import settings | ||
@override_settings(FOO='bar') | ||
def test() -> None: | ||
pass | ||
reveal_type(test) # N: Revealed type is "def ()" |