misc: change pyupgrade target version to 3.9 (#75442)

This commit is contained in:
Valentin Deniaud 2023-03-15 14:13:41 +01:00
parent f4bca2d2fe
commit 252e1934a1
2 changed files with 3 additions and 3 deletions

View File

@ -12,10 +12,10 @@ repos:
- id: isort
args: ['--profile', 'black', '--line-length', '110']
- repo: https://github.com/asottile/pyupgrade
rev: v3.1.0
rev: v3.3.1
hooks:
- id: pyupgrade
args: ['--keep-percent-format', '--py37-plus']
args: ['--keep-percent-format', '--py39-plus']
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.13.0
hooks:

View File

@ -24,7 +24,7 @@ from django.conf import settings
utc = zoneinfo.ZoneInfo('UTC')
@functools.lru_cache()
@functools.lru_cache
def get_default_timezone():
"""
Return the default time zone as a tzinfo instance.