Bump pyupgrade target to 3.10+

... according to the versions currently supported.

Change-Id: I2ce35c0c403da1a67482f43d64c606280fad1478
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2025-10-05 19:34:42 +09:00
parent 90754a060c
commit 36da9b2e76
2 changed files with 2 additions and 2 deletions

View File

@@ -26,4 +26,4 @@ repos:
rev: v3.20.0
hooks:
- id: pyupgrade
args: [--py3-only]
args: [--py310-plus]

View File

@@ -99,7 +99,7 @@ def get_class_name(obj, fully_qualified=True):
return obj.__name__
if fully_qualified and hasattr(obj, '__module__'):
return '{}.{}'.format(obj.__module__, obj.__name__)
return f'{obj.__module__}.{obj.__name__}'
else:
return obj.__name__