Apply ruff==0.9.0 formatting (#18624)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
c196a82bfa
commit
34b339d033
12 changed files with 17 additions and 30 deletions
|
|
@ -473,8 +473,7 @@ def check_dict_alignment(base: Dict, custom: Dict, e=None):
|
|||
"""
|
||||
custom = _handle_deprecation(custom)
|
||||
base_keys, custom_keys = (set(x.keys()) for x in (base, custom))
|
||||
mismatched = [k for k in custom_keys if k not in base_keys]
|
||||
if mismatched:
|
||||
if mismatched := [k for k in custom_keys if k not in base_keys]:
|
||||
from difflib import get_close_matches
|
||||
|
||||
string = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue