-
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
47 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[mypy] | ||
ignore_missing_imports = True | ||
check_untyped_defs = True | ||
plugins = | ||
mypy_django_plugin.main, | ||
mypy_drf_plugin.main |
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,10 @@ | ||
[CASE test_client_methods_return_response_objects] | ||
from rest_framework import test | ||
|
||
class MyTestCase(test.APITestCase): | ||
client: test.APIClient | ||
|
||
def test_my_code(self): | ||
client = test.APIClient() | ||
reveal_type(client.post('http://google.com')) # E: Revealed type is 'rest_framework.response.Response' | ||
[/CASE] |