Unverified Commit c1820917 authored by Jose Borreguero's avatar Jose Borreguero Committed by GitHub
Browse files

correct types for checking paths

parent 734c7198
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ class Foldernames(param.Foldername):
    def _resolve(self, paths):
        if isinstance(paths, (str, Path)):
            return super()._resolve(paths)
        elif isinstance(paths, (List, Tuple)):
        elif isinstance(paths, (list, tuple)):
            return [self._resolve(path) for path in paths]
        else:
            name = next(x for x in [self.name, self.label, "Foldernames parameter"] if x)