mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-07-03 13:54:44 +08:00
fix(lib/cli): fix validation error (#221)
This commit is contained in:
@ -76,11 +76,11 @@ class Config(BaseModel): # type: ignore
|
||||
ids: Set[int] = set()
|
||||
|
||||
for key in values.values():
|
||||
if len(ids.intersection(key.ids)) != 0:
|
||||
if len(ids.intersection(key["ids"])) != 0:
|
||||
raise ValueError(
|
||||
"Two or more keys share a common key code: please make sure each key has distinct key codes"
|
||||
)
|
||||
ids.update(key.ids)
|
||||
ids.update(key["ids"])
|
||||
|
||||
return values
|
||||
|
||||
|
Reference in New Issue
Block a user