Find an installed editor by version string.
(version: str)
| 140 | |
| 141 | |
| 142 | def find_editor_by_version(version: str) -> InstalledEditor | None: |
| 143 | """Find an installed editor by version string.""" |
| 144 | editors = get_installed_editors() |
| 145 | for editor in editors: |
| 146 | if editor.version == version: |
| 147 | return editor |
| 148 | return None |
no test coverage detected