mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 15:27:17 +00:00
refactor: simplify Validator class
This commit is contained in:
parent
cdef67986b
commit
020560d341
@ -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