Merge "Bump pyupgrade target to 3.10+"

This commit is contained in:
Zuul
2025-10-08 15:05:26 +00:00
committed by Gerrit Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -25,4 +25,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__