|
1 | 1 | """ |
2 | 2 | Configuration manager - handles the application's global configuration. |
3 | 3 | """ |
| 4 | + |
4 | 5 | import base64 |
5 | 6 | import functools |
6 | 7 | import graphlib |
@@ -64,13 +65,11 @@ class TemplateStr(str): |
64 | 65 |
|
65 | 66 |
|
66 | 67 | @typing.overload |
67 | | -def _path_converter(s: typing.Union[TemplatePath, TemplateStr]) -> TemplatePath: |
68 | | - ... |
| 68 | +def _path_converter(s: typing.Union[TemplatePath, TemplateStr]) -> TemplatePath: ... |
69 | 69 |
|
70 | 70 |
|
71 | 71 | @typing.overload |
72 | | -def _path_converter(s: typing.Union[str, Path]) -> Path: |
73 | | - ... |
| 72 | +def _path_converter(s: typing.Union[str, Path]) -> Path: ... |
74 | 73 |
|
75 | 74 |
|
76 | 75 | def _path_converter(s): |
@@ -288,25 +287,25 @@ def find_requirements(attr_name: str) -> typing.Sequence[str]: |
288 | 287 | @typing.overload |
289 | 288 | def _make_single_replacement( |
290 | 289 | self, value: typing.Union[str, TemplateStr], replacements: _ReplacementsMapType |
291 | | - ) -> str: |
292 | | - ... |
| 290 | + ) -> str: ... |
293 | 291 |
|
294 | 292 | @typing.overload |
295 | 293 | def _make_single_replacement( |
296 | 294 | self, |
297 | 295 | value: typing.Union[Path, TemplatePath], |
298 | 296 | replacements: _ReplacementsMapType, |
299 | | - ) -> Path: |
300 | | - ... |
| 297 | + ) -> Path: ... |
301 | 298 |
|
302 | 299 | def _make_single_replacement(self, value, replacements): |
303 | 300 | if isinstance(value, TemplatePath): |
304 | 301 | return Path( |
305 | 302 | *( |
306 | 303 | self._make_single_replacement( |
307 | | - TemplateStr(component) |
308 | | - if component.startswith("{{") |
309 | | - else component, |
| 304 | + ( |
| 305 | + TemplateStr(component) |
| 306 | + if component.startswith("{{") |
| 307 | + else component |
| 308 | + ), |
310 | 309 | replacements=replacements, |
311 | 310 | ) |
312 | 311 | for component in value.parts |
|
0 commit comments