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