Skip to content

Commit 246568f

Browse files
pre-commit-ci[bot]WhyNotHugo
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 439f1e6 commit 246568f

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

vdirsyncer/cli/config.py

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,7 @@ def __init__(self, f: IO[Any]):
107107
self._storages: dict[str, dict[str, str]] = {}
108108

109109
def _parse_section(
110-
self,
111-
section_type: str,
112-
name: str,
113-
options: dict[str, Any]
110+
self, section_type: str, name: str, options: dict[str, Any]
114111
) -> None:
115112
validate_section_name(name, section_type)
116113
if name in self._seen_names:
@@ -129,7 +126,7 @@ def _parse_section(
129126
raise ValueError("Unknown section type.")
130127

131128
def parse(
132-
self
129+
self,
133130
) -> tuple[dict[str, str], dict[str, dict[str, str]], dict[str, dict[str, str]]]:
134131
for section in self._parser.sections():
135132
if " " in section:
@@ -157,8 +154,7 @@ def parse(
157154

158155

159156
def _parse_options(
160-
items: list[tuple[str, str]],
161-
section: str | None = None
157+
items: list[tuple[str, str]], section: str | None = None
162158
) -> Generator[tuple[str, dict[str, str]], None, None]:
163159
for key, value in items:
164160
try:
@@ -172,7 +168,7 @@ def __init__(
172168
self,
173169
general: dict[str, str],
174170
pairs: dict[str, dict[str, str]],
175-
storages: dict[str, dict[str, str]]
171+
storages: dict[str, dict[str, str]],
176172
) -> None:
177173
self.general = general
178174
self.storages = storages
@@ -258,8 +254,7 @@ def __init__(self, full_config: Config, name: str, options: dict[str, str]):
258254
raise ValueError("Unknown options: {}".format(", ".join(options)))
259255

260256
def _process_conflict_resolution_param(
261-
self,
262-
conflict_resolution: str | list[str] | None
257+
self, conflict_resolution: str | list[str] | None
263258
):
264259
if conflict_resolution in (None, "a wins", "b wins"):
265260
return conflict_resolution
@@ -337,12 +332,7 @@ def __init__(self, pair, name: str, config_a, config_b):
337332

338333

339334
def _resolve_conflict_via_command(
340-
a,
341-
b,
342-
command,
343-
a_name,
344-
b_name,
345-
_check_call=None
335+
a, b, command, a_name, b_name, _check_call=None
346336
) -> Item:
347337
import shutil
348338
import tempfile

0 commit comments

Comments
 (0)