(self, manager: "ExternalStructureManager")
| 5352 | |
| 5353 | class Modules(dict): |
| 5354 | def __init__(self, manager: "ExternalStructureManager") -> None: |
| 5355 | self.manager: "ExternalStructureManager" = manager |
| 5356 | self.root: pathlib.Path = manager.path |
| 5357 | |
| 5358 | for entry in self.root.iterdir(): |
| 5359 | if not entry.is_file(): continue |
| 5360 | if entry.suffix != ".py": continue |
| 5361 | if entry.name == "__init__.py": continue |
| 5362 | module = ExternalStructureManager.Module(manager, entry) |
| 5363 | self[module.name] = module |
| 5364 | return |
| 5365 | |
| 5366 | def __contains__(self, structure_name: str) -> bool: |
| 5367 | """Return True if the structure name is found in any of the modules""" |
nothing calls this directly
no outgoing calls
no test coverage detected