mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 07:17:17 +00:00
refactor: simplify Validator class
This commit is contained in:
parent
6e37a60cf0
commit
6577ca9db1
@ -35,8 +35,9 @@ class Validator(RootValidator):
|
||||
configuration(Configuration): configuration instance
|
||||
"""
|
||||
|
||||
types_mapping = RootValidator.types_mapping.copy()
|
||||
types_mapping["path"] = TypeDefinition("path", (Path,), ())
|
||||
types_mapping = RootValidator.types_mapping | {
|
||||
"path": TypeDefinition("path", (Path,), ()),
|
||||
}
|
||||
|
||||
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user