From 252e1934a171ee6c515476f9244a5ba146e4896b Mon Sep 17 00:00:00 2001 From: Valentin Deniaud Date: Wed, 15 Mar 2023 14:13:41 +0100 Subject: [PATCH] misc: change pyupgrade target version to 3.9 (#75442) --- .pre-commit-config.yaml | 4 ++-- chrono/utils/timezone.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8c5510eb..a4764a55 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: diff --git a/chrono/utils/timezone.py b/chrono/utils/timezone.py index 74dfa9d2..41f8908c 100644 --- a/chrono/utils/timezone.py +++ b/chrono/utils/timezone.py @@ -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.