misc: change pyupgrade target version to 3.9 (#75442)
This commit is contained in:
parent
db400374ff
commit
3edf908bfe
|
@ -2,10 +2,10 @@
|
|||
# See https://pre-commit.com/hooks.html for more hooks
|
||||
repos:
|
||||
- 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:
|
||||
|
|
|
@ -18,7 +18,6 @@ import copy
|
|||
import dataclasses
|
||||
import datetime
|
||||
import decimal
|
||||
from typing import List
|
||||
|
||||
from django.db import models
|
||||
from django.template import Context, RequestContext, Template, TemplateSyntaxError, VariableDoesNotExist
|
||||
|
@ -398,13 +397,13 @@ class PricingMatrixCell:
|
|||
@dataclasses.dataclass
|
||||
class PricingMatrixRow:
|
||||
criteria: Criteria
|
||||
cells: List[PricingMatrixCell]
|
||||
cells: list[PricingMatrixCell]
|
||||
|
||||
|
||||
@dataclasses.dataclass
|
||||
class PricingMatrix:
|
||||
criteria: Criteria
|
||||
rows: List[PricingMatrixRow]
|
||||
rows: list[PricingMatrixRow]
|
||||
|
||||
|
||||
class AgendaPricing(models.Model):
|
||||
|
|
Loading…
Reference in New Issue