mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-05 23:09:32 +01:00
outs/deps: remove type-specific SCHEMAs
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -19,11 +19,6 @@ class DependencyLOCAL(DependencyBase):
|
||||
DoesNotExistError = DependencyDoesNotExistError
|
||||
IsNotFileOrDirError = DependencyIsNotFileOrDirError
|
||||
|
||||
SCHEMA = {
|
||||
PARAM_PATH: str,
|
||||
schema.Optional(PARAM_MD5): schema.Or(str, None),
|
||||
}
|
||||
|
||||
def __init__(self, stage, path, md5=None):
|
||||
self.stage = stage
|
||||
self.project = stage.project
|
||||
|
||||
@@ -16,9 +16,6 @@ class OutputLOCAL(DependencyLOCAL):
|
||||
DoesNotExistError = OutputDoesNotExistError
|
||||
IsNotFileOrDirError = OutputIsNotFileOrDirError
|
||||
|
||||
SCHEMA = DependencyLOCAL.SCHEMA
|
||||
SCHEMA[schema.Optional(PARAM_CACHE)] = bool
|
||||
|
||||
def __init__(self, stage, path, md5=None, use_cache=True):
|
||||
super(OutputLOCAL, self).__init__(stage, path, md5=md5)
|
||||
self.use_cache = use_cache
|
||||
|
||||
Reference in New Issue
Block a user