-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Paths are either directory or file, but our Paths contains only files. For example, ExtensionPaths can operate only at files, but this is not marked anyhow. Instead, it should be File and Files interfaces, and no Paths.
Lines 32 to 43 in 091c121
| class ExtensionPaths(Paths): | |
| """Extension paths. | |
| Paths with certain extension. | |
| """ | |
| def __init__(self, origin: Paths, extension: Extension): | |
| self.origin = origin | |
| self.extension = extension | |
| def __iter__(self) -> Iterable[Path]: | |
| return filter(lambda path: self.extension == path.suffix, self.origin) |
Metadata
Metadata
Assignees
Labels
No labels