Skip to content

Commit d5e133e

Browse files
committed
Lint project with black 24.1.1
1 parent 664a412 commit d5e133e

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

doc/source/conf.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
#
9393
# This is also used if you do content translation via gettext catalogs.
9494
# Usually you set "language" from the command line for these cases.
95-
language = 'en'
95+
language = "en"
9696

9797
# List of patterns, relative to source directory, that match files and
9898
# directories to ignore when looking for source files.
@@ -120,8 +120,8 @@
120120
"show_breadcrumbs": True,
121121
"additional_breadcrumbs": [
122122
("PyAnsys Documentation", "https://docs.pyansys.com"),
123-
("Shared Components", "https://shared.docs.pyansys.com")
124-
]
123+
("Shared Components", "https://shared.docs.pyansys.com"),
124+
],
125125
}
126126

127127
# -- Options for HTMLHelp output ---------------------------------------------

src/ansys/openapi/common/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Provides a helper to create sessions for use with Ansys OpenAPI clients."""
2+
23
from importlib import metadata as metadata
34

45
__version__ = metadata.version("ansys-openapi-common")

src/ansys/openapi/common/_base/_types.py

+4-8
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ class ModelBase(metaclass=abc.ABCMeta):
2929
attribute_map: Dict[str, str]
3030

3131
@abc.abstractmethod
32-
def __init__(self, *args: Any, **kwargs: Any) -> None:
33-
...
32+
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
3433

3534
def to_dict(self) -> Dict:
3635
"""Returns the model properties as a dict
@@ -98,13 +97,11 @@ class ApiClientBase(metaclass=abc.ABCMeta):
9897

9998
@staticmethod
10099
@abc.abstractmethod
101-
def select_header_accept(accepts: Optional[List[str]]) -> Optional[str]:
102-
...
100+
def select_header_accept(accepts: Optional[List[str]]) -> Optional[str]: ...
103101

104102
@staticmethod
105103
@abc.abstractmethod
106-
def select_header_content_type(content_types: Optional[List[str]]) -> str:
107-
...
104+
def select_header_content_type(content_types: Optional[List[str]]) -> str: ...
108105

109106
@abc.abstractmethod
110107
def call_api(
@@ -123,5 +120,4 @@ def call_api(
123120
_preload_content: bool = True,
124121
_request_timeout: Union[float, Tuple[float, float], None] = None,
125122
response_type_map: Optional[Dict[int, Union[str, None]]] = None,
126-
) -> Union[requests.Response, DeserializedType, None]:
127-
...
123+
) -> Union[requests.Response, DeserializedType, None]: ...

src/ansys/openapi/common/_oidc.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,11 @@ def __init__(
8686
authorization_url=self._well_known_parameters["authorization_endpoint"],
8787
token_url=self._well_known_parameters["token_endpoint"],
8888
redirect_uri_port=32284,
89-
audience=self._authenticate_parameters["apiAudience"]
90-
if "apiAudience" in self._authenticate_parameters
91-
else None,
89+
audience=(
90+
self._authenticate_parameters["apiAudience"]
91+
if "apiAudience" in self._authenticate_parameters
92+
else None
93+
),
9294
client_id=self._authenticate_parameters["clientid"],
9395
scope=scopes,
9496
session=self._initial_session,

0 commit comments

Comments
 (0)