From 93679395c3ac0b8d4fb51a22f8a459cc8d05d40f Mon Sep 17 00:00:00 2001 From: Isaac To Date: Sat, 8 Nov 2025 17:28:56 -0800 Subject: [PATCH] fix: remove `ValidationResult.path_regex` as possible return of purview A purview is expected to be the string expression of a path or `None` in its only usages in `_process_issues()`, so it is inappropriate to return `ValidationResult.path_regex` which is a regex. --- dandi/validate_types.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/dandi/validate_types.py b/dandi/validate_types.py index 8356a0d51..c2ee4cb9b 100644 --- a/dandi/validate_types.py +++ b/dandi/validate_types.py @@ -219,8 +219,6 @@ class ValidationResult(BaseModel): def purview(self) -> str | None: if self.path is not None: return str(self.path) - elif self.path_regex is not None: - return self.path_regex elif self.dataset_path is not None: return str(self.dataset_path) else: