Skip to content

Commit

Permalink
Update target version for pyupgrade to 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jieter committed Nov 6, 2024
1 parent 2a6d125 commit daf256a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ repos:
rev: v3.19.0
hooks:
- id: pyupgrade
args: [--py38-plus]
args: [--py39-plus]

6 changes: 3 additions & 3 deletions django_tables2/views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from itertools import count
from typing import Any, Dict, Optional
from typing import Any, Optional

from django.core.exceptions import ImproperlyConfigured
from django.views.generic.list import ListView
Expand Down Expand Up @@ -152,7 +152,7 @@ def get_table_kwargs(self):
"""
return {}

def get_context_data(self, **kwargs: Any) -> Dict[str, Any]:
def get_context_data(self, **kwargs: Any) -> dict[str, Any]:
"""
Overridden version of `.TemplateResponseMixin` to inject the table into
the template's context.
Expand Down Expand Up @@ -227,7 +227,7 @@ def get_tables_data(self):
"""
return self.tables_data

def get_context_data(self, **kwargs: Any) -> Dict[str, Any]:
def get_context_data(self, **kwargs: Any) -> dict[str, Any]:
context = super().get_context_data(**kwargs)
tables = self.get_tables()

Expand Down

0 comments on commit daf256a

Please sign in to comment.