Merge "Bump pyupgrade target to 3.10+"
This commit is contained in:
@@ -25,4 +25,4 @@ repos:
|
||||
rev: v3.20.0
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
args: [--py3-only]
|
||||
args: [--py310-plus]
|
||||
|
||||
@@ -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__
|
||||
|
||||
|
||||
Reference in New Issue
Block a user