mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Ruff
This commit is contained in:
parent
a426baf1a1
commit
a187a7fc56
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ class ProfileConfig:
|
|||
# Get all field names defined in the dataclass
|
||||
field_names = {f.name for f in fields(cls)}
|
||||
|
||||
# Filter the input dictionary to include only keys that match field names
|
||||
# Filter the input dictionary to include only keys matching field names
|
||||
filtered_data = {k: v for k, v in data.items() if k in field_names}
|
||||
|
||||
# Unpack the filtered dictionary into the constructor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue