Skip to content

Commit e46c38f

Browse files
committed
Change target version of Black to Python 3.11
1 parent 8431541 commit e46c38f

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

pyproject.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
[build-system]
2-
requires = [
3-
"setuptools>=42",
4-
"wheel"
5-
]
2+
requires = ["setuptools>=42", "wheel"]
63
build-backend = "setuptools.build_meta"
74

85
[tool.black]
9-
target-version = ["py39"]
6+
target-version = ["py311"]
107
line_length = 88

testproj/testproj/testapp/migrations/0001_initial.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44

55
class Migration(migrations.Migration):
6-
76
initial = True
87

98
dependencies = []

webstack_django_sorting/templatetags/sorting_tags.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ def render(self, context):
112112

113113
queryset = self.queryset_var.resolve(context)
114114
order_by = common.get_order_by_from_request(context["request"])
115-
null_ordering = common.get_null_ordering(
116-
context["request"], self.null_ordering
117-
)
115+
null_ordering = common.get_null_ordering(context["request"], self.null_ordering)
118116

119117
try:
120118
context[key] = common.sort_queryset(queryset, order_by, null_ordering)

0 commit comments

Comments
 (0)