-
-
Notifications
You must be signed in to change notification settings - Fork 488
Add support for mypy v1.16 #2703
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
Changes from all commits
b9e3f31
32b941e
7ebf9fd
3f0db90
a88638d
9c3b755
5a06fba
e98d408
07e8d8e
0465510
e0bab8e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
from typing import Any | ||
|
||
from django.contrib.gis.db.backends.base.features import BaseSpatialFeatures | ||
from django.db.backends.oracle.features import DatabaseFeatures as OracleDatabaseFeatures | ||
from django.utils.functional import cached_property | ||
|
||
class DatabaseFeatures(BaseSpatialFeatures, OracleDatabaseFeatures): | ||
supports_add_srs_entry: bool | ||
supports_geometry_field_introspection: bool | ||
supports_geometry_field_unique_index: bool | ||
supports_perimeter_geodetic: bool | ||
supports_dwithin_distance_expr: bool | ||
@cached_property | ||
def django_test_skips(self) -> dict[str, Any]: ... # type: ignore[override] |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,10 @@ | |
main:4: note: def __iter__(self) -> Iterator[Union[Tuple[Any, Any], Tuple[str, Iterable[Tuple[Any, Any]]]]] | ||
main:4: note: Got: | ||
main:4: note: def __iter__(self) -> Iterator[str] | ||
main:4: note: Expected: | ||
main:4: note: def __iter__(self) -> Iterator[Union[Tuple[Any, Any], Tuple[str, Iterable[Tuple[Any, Any]]]]] | ||
main:4: note: Got: | ||
main:4: note: def __iter__(self) -> Iterator[str] | ||
Comment on lines
+14
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is annoying and perhaps a new bug in mypy v1.16? It doubles this note for some reason. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, looks like so. Please, report upsteam. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reported in python/mypy#19240 |
||
|
||
- case: db_models_integerfield_invalid_choices | ||
main: | | ||
|
@@ -25,6 +29,10 @@ | |
main:4: note: def __iter__(self) -> Iterator[Union[Tuple[Any, Any], Tuple[str, Iterable[Tuple[Any, Any]]]]] | ||
main:4: note: Got: | ||
main:4: note: def __iter__(self) -> Iterator[str] | ||
main:4: note: Expected: | ||
main:4: note: def __iter__(self) -> Iterator[Union[Tuple[Any, Any], Tuple[str, Iterable[Tuple[Any, Any]]]]] | ||
main:4: note: Got: | ||
main:4: note: def __iter__(self) -> Iterator[str] | ||
ngnpope marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- case: db_models_valid_choices | ||
main: | | ||
|
Uh oh!
There was an error while loading. Please reload this page.