Skip to content

Commit

Permalink
Remove some deprecated Django 3.x APIs (typeddjango#1991)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Mar 5, 2024
1 parent 14c80e0 commit a5af3ef
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ We rely on different `django` and `mypy` versions:

| django-stubs | Mypy version | Django version | Django partial support | Python version |
|----------------|--------------|----------------|------------------------|----------------|
| (next release) | 1.8.x | 5.0 | 4.2, 4.1, 3.2 | 3.8 - 3.12 |
| (next release) | 1.8.x | 5.0 | 4.2, 4.1 | 3.8 - 3.12 |
| 4.2.7 | 1.7.x | 4.2 | 4.1, 3.2 | 3.8 - 3.12 |
| 4.2.6 | 1.6.x | 4.2 | 4.1, 3.2 | 3.8 - 3.12 |
| 4.2.5 | 1.6.x | 4.2 | 4.1, 3.2 | 3.8 - 3.12 |
Expand Down
3 changes: 0 additions & 3 deletions django-stubs/core/cache/backends/memcached.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ class BaseMemcachedCache(BaseCache):
@property
def client_servers(self) -> Sequence[str]: ...

class MemcachedCache(BaseMemcachedCache):
def __init__(self, server: str | Sequence[str], params: dict[str, Any]) -> None: ...

class PyLibMCCache(BaseMemcachedCache):
def __init__(self, server: str | Sequence[str], params: dict[str, Any]) -> None: ...
@property
Expand Down
1 change: 0 additions & 1 deletion django-stubs/middleware/csrf.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ REASON_NO_REFERER: str
REASON_BAD_REFERER: str
REASON_NO_CSRF_COOKIE: str
REASON_CSRF_TOKEN_MISSING: str
REASON_BAD_TOKEN: str
REASON_MALFORMED_REFERER: str
REASON_INSECURE_REFERER: str

Expand Down
9 changes: 0 additions & 9 deletions scripts/stubtest/allowlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,6 @@ django.core.management.color.Style.SQL_TABLE
django.core.management.color.Style.SUCCESS
django.core.management.color.Style.WARNING

# `error: <...> is not present at runtime`
# This happens often for variables removed in later django version.
# We still keep them in stubs to be a bit more backward compatible.
# RemovedInDjango40:
django.middleware.csrf.REASON_BAD_TOKEN

# RemovedInDjango41
django.core.cache.backends.memcached.MemcachedCache

# We re-export `functools.cached_property` which has different semantics
django.utils.functional.cached_property.__class_getitem__
django.utils.functional.cached_property.__set__
Expand Down

0 comments on commit a5af3ef

Please sign in to comment.