-
-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disallow Any
generics
#1339
Closed
christianbundy
wants to merge
38
commits into
typeddjango:master
from
christianbundy:christian/disallow-any-generics
Closed
Disallow Any
generics
#1339
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
31ef26e
Fix admin action return type
christianbundy c089372
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 3fe1a91
Use HttpResponseBase to support StreamingHttpResponse
christianbundy 5bc0daa
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a71a424
Fix usage
christianbundy 50ed1fe
Merge branch 'master' of github.com:typeddjango/django-stubs into chr…
christianbundy aa9dea3
Fix issues
christianbundy 92da2c1
Fix test
christianbundy d004b1b
Remove redundant comma
christianbundy 3fa57f0
Use `T | None` rather than `Optional[T]`
christianbundy 66e29c9
Add freestanding actions to test
christianbundy 0477a26
Add negative test cases
christianbundy ea49719
Add unhappier paths and fix problems
christianbundy 0494aa5
Fix Field
christianbundy 72e4d76
Fix tuple
christianbundy 52931f9
Fix accidental changes
christianbundy 67bcbf6
Fix dict
christianbundy 12efe41
Fix QuerySet
christianbundy 1d3b00a
Fix ModelForm
christianbundy 17fbf7c
Fix PostgresOperatorLookup
christianbundy 2f19735
Fix File
christianbundy 38f91fe
Fix Manager
christianbundy be19241
Fix ForeignKey
christianbundy 16db657
Fix CharField
christianbundy 4c7f506
Fix Lookup
christianbundy faa7885
Fix UploadedFile
christianbundy 99dc74d
Fix IntegerField
christianbundy 851f5fa
Fix _DisplayT
christianbundy f1a5850
Fix Paginator
christianbundy 02d878a
Fix BooleanField
christianbundy f7cc279
Fix fields
christianbundy bbee01e
Fix BaseModelAdmin
christianbundy 9f682c7
Fix Sitemap
christianbundy 3e1e1ab
Fix MultiValueDict
christianbundy 838c66d
Fix the rest of the errors
christianbundy d6aba2e
Fix TypeAlias import
christianbundy 9bcb79d
HACK: Make mypy-test.ini to avoid changing tests
christianbundy cf35f4b
Merge branch 'master' of github.com:typeddjango/django-stubs into chr…
christianbundy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,6 +1,9 @@ | ||
from django.contrib.admin.options import ModelAdmin | ||
from django.db.models import Model | ||
from django.db.models.query import QuerySet | ||
from django.http.request import HttpRequest | ||
from django.template.response import TemplateResponse | ||
|
||
def delete_selected(modeladmin: ModelAdmin, request: HttpRequest, queryset: QuerySet) -> TemplateResponse | None: ... | ||
def delete_selected( | ||
modeladmin: ModelAdmin[Model], request: HttpRequest, queryset: QuerySet[Model] | ||
) -> TemplateResponse | None: ... |
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: this currently builds off of my other branch, #1331.