Skip to content

Commit 01f34f5

Browse files
authored
1 parent 0f6f0c6 commit 01f34f5

File tree

24 files changed

+36
-918
lines changed

24 files changed

+36
-918
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
python-version:
22-
- 3.8
2322
- 3.9
2423
- '3.10'
2524
- '3.11'

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ repos:
3939
rev: v3.17.0
4040
hooks:
4141
- id: pyupgrade
42-
args: [--py38-plus]
42+
args: [--py39-plus]
4343
- repo: https://github.com/adamchainz/django-upgrade
4444
rev: 1.21.0
4545
hooks:

docs/changelog.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Changelog
33
=========
44

5+
* Drop Python 3.8 support.
6+
57
* Support Python 3.13.
68

79
* Add testing for MariaDB 10.11 and 11.4, and MySQL 9.0.

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Installation
44
Requirements
55
------------
66

7-
Python 3.8 to 3.13 supported.
7+
Python 3.9 to 3.13 supported.
88

99
Django 3.2 to 5.1 supported.
1010

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ keywords = [
1717
authors = [
1818
{ name = "Adam Johnson", email = "[email protected]" },
1919
]
20-
requires-python = ">=3.8"
20+
requires-python = ">=3.9"
2121
classifiers = [
2222
"Development Status :: 5 - Production/Stable",
2323
"Framework :: Django",
@@ -32,7 +32,6 @@ classifiers = [
3232
"Natural Language :: English",
3333
"Operating System :: OS Independent",
3434
"Programming Language :: Python :: 3 :: Only",
35-
"Programming Language :: Python :: 3.8",
3635
"Programming Language :: Python :: 3.9",
3736
"Programming Language :: Python :: 3.10",
3837
"Programming Language :: Python :: 3.11",

src/django_mysql/cache.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44
import pickle
55
import re
66
import zlib
7+
from collections.abc import Iterable
78
from random import random
89
from textwrap import dedent
910
from time import time
1011
from typing import Any
1112
from typing import Callable
12-
from typing import Iterable
1313
from typing import Literal
14-
from typing import Tuple
1514
from typing import cast
1615

1716
from django.core.cache.backends.base import DEFAULT_TIMEOUT
@@ -98,7 +97,7 @@ def get_reverse_key_func(
9897
return reverse_key_func
9998
else:
10099
return cast(
101-
Callable[[str], Tuple[str, str, int]],
100+
Callable[[str], tuple[str, str, int]],
102101
import_string(reverse_key_func),
103102
)
104103
return None

src/django_mysql/checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

3+
from collections.abc import Iterable
34
from typing import Any
4-
from typing import Iterable
55

66
from django.core import checks
77

src/django_mysql/compat.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/django_mysql/models/expressions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

3+
from collections.abc import Iterable
34
from typing import Any
4-
from typing import Iterable
55

66
from django.db.backends.base.base import BaseDatabaseWrapper
77
from django.db.models import F

src/django_mysql/models/fields/dynamic.py

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
import datetime as dt
44
import json
5+
from collections.abc import Iterable
56
from typing import Any
67
from typing import Callable
7-
from typing import Dict
8-
from typing import Iterable
9-
from typing import Type
108
from typing import Union
119
from typing import cast
1210

@@ -37,25 +35,25 @@
3735

3836
# Mypy doesn't support recursive types at time of writing, but we can at least
3937
# define this type to two levels deep.
40-
SpecDict = Dict[
38+
SpecDict = dict[
4139
str,
4240
Union[
43-
Type[dt.date],
44-
Type[dt.datetime],
45-
Type[float],
46-
Type[int],
47-
Type[str],
48-
Type[dt.time],
49-
Dict[
41+
type[dt.date],
42+
type[dt.datetime],
43+
type[float],
44+
type[int],
45+
type[str],
46+
type[dt.time],
47+
dict[
5048
str,
5149
Union[
52-
Type[dt.date],
53-
Type[dt.datetime],
54-
Type[float],
55-
Type[int],
56-
Type[str],
57-
Type[dt.time],
58-
Dict[str, Any],
50+
type[dt.date],
51+
type[dt.datetime],
52+
type[float],
53+
type[int],
54+
type[str],
55+
type[dt.time],
56+
dict[str, Any],
5957
],
6058
],
6159
],

0 commit comments

Comments
 (0)