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 - id: isort
args: ['--profile', 'black', '--line-length', '110'] args: ['--profile', 'black', '--line-length', '110']
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v3.1.0 rev: v3.3.1
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: ['--keep-percent-format', '--py37-plus'] args: ['--keep-percent-format', '--py39-plus']
- repo: https://github.com/adamchainz/django-upgrade - repo: https://github.com/adamchainz/django-upgrade
rev: 1.13.0 rev: 1.13.0
hooks: hooks:

View File

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