Skip to content

Commit bbef8b3

Browse files
committed
reformat with black
1 parent 0bef909 commit bbef8b3

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

openapi_python_client/__init__.py

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ def __init__(self, *, openapi: GeneratorData, custom_template_path: Optional[str
3535

3636
package_loader = PackageLoader(__package__)
3737
if custom_template_path is not None:
38-
loader = ChoiceLoader([FileSystemLoader(custom_template_path), package_loader,])
38+
loader = ChoiceLoader(
39+
[
40+
FileSystemLoader(custom_template_path),
41+
package_loader,
42+
]
43+
)
3944
else:
4045
loader = package_loader
4146
self.env: Environment = Environment(loader=loader, trim_blocks=True, lstrip_blocks=True)
@@ -198,7 +203,9 @@ def _build_api(self) -> None:
198203
module_path.write_text(endpoint_template.render(endpoint=endpoint))
199204

200205

201-
def _get_project_for_url_or_path(url: Optional[str], path: Optional[Path], custom_template_path: Optional[str] = None) -> Union[Project, GeneratorError]:
206+
def _get_project_for_url_or_path(
207+
url: Optional[str], path: Optional[Path], custom_template_path: Optional[str] = None
208+
) -> Union[Project, GeneratorError]:
202209
data_dict = _get_document(url=url, path=path)
203210
if isinstance(data_dict, GeneratorError):
204211
return data_dict
@@ -208,7 +215,9 @@ def _get_project_for_url_or_path(url: Optional[str], path: Optional[Path], custo
208215
return Project(openapi=openapi, custom_template_path=custom_template_path)
209216

210217

211-
def create_new_client(*, url: Optional[str], path: Optional[Path], custom_template_path: Optional[str] = None) -> Sequence[GeneratorError]:
218+
def create_new_client(
219+
*, url: Optional[str], path: Optional[Path], custom_template_path: Optional[str] = None
220+
) -> Sequence[GeneratorError]:
212221
"""
213222
Generate the client library
214223
@@ -221,7 +230,9 @@ def create_new_client(*, url: Optional[str], path: Optional[Path], custom_templa
221230
return project.build()
222231

223232

224-
def update_existing_client(*, url: Optional[str], path: Optional[Path], custom_template_path: Optional[str] = None) -> Sequence[GeneratorError]:
233+
def update_existing_client(
234+
*, url: Optional[str], path: Optional[Path], custom_template_path: Optional[str] = None
235+
) -> Sequence[GeneratorError]:
225236
"""
226237
Update an existing client library
227238

0 commit comments

Comments
 (0)