Skip to content

Commit

Permalink
Bump django to 5.1.3 (#2436)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Nov 6, 2024
1 parent 4482fcf commit d255eca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions django-stubs/contrib/gis/geoip2/base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ from pathlib import Path
from typing import Any

from django.contrib.gis.geos import Point
from django.utils.functional import cached_property

GEOIP_SETTINGS: dict[str, Any]

Expand All @@ -23,6 +24,10 @@ class GeoIP2:
def country_code(self, query: str) -> str: ...
def country_name(self, query: str) -> str: ...
def country(self, query: str) -> dict[str, Any]: ...
@cached_property
def is_city(self) -> bool: ...
@cached_property
def is_country(self) -> bool: ...
def coords(self, query: str, ordering: Sequence[str] = ...) -> tuple[float, float] | tuple[None, None]: ...
def lon_lat(self, query: str) -> tuple[float, float] | tuple[None, None]: ...
def lat_lon(self, query: str) -> tuple[float, float] | tuple[None, None]: ...
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pytest-shard==0.1.2
# Django deps:
psycopg2-binary
Django==4.2.16; python_version < '3.10'
Django==5.1.2; python_version >= '3.10'
Django==5.1.3; python_version >= '3.10'
-e ./ext
-e .[redis,compatible-mypy,oracle]

Expand Down
2 changes: 2 additions & 0 deletions scripts/stubtest/allowlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ django.contrib.contenttypes.fields.ReverseGenericManyToOneDescriptor.related_man
django.contrib.gis.db.backends.base.operations.BaseSpatialOperations.select_extent
django.contrib.gis.db.backends.mysql.features.DatabaseFeatures.django_test_skips
django.contrib.gis.db.backends.mysql.features.DatabaseFeatures.supports_geometry_field_unique_index
django.contrib.gis.geoip2.GeoIP2.is_country
django.contrib.gis.geoip2.GeoIP2.is_city
django.contrib.gis.db.backends.mysql.operations.MySQLOperations.from_text
django.contrib.gis.db.backends.mysql.operations.MySQLOperations.gis_operators
django.contrib.gis.db.backends.mysql.operations.MySQLOperations.mariadb
Expand Down

0 comments on commit d255eca

Please sign in to comment.