Skip to content

Commit e7d7e31

Browse files
authored
COH-29374 - CI Build error caused by https://github.com/psf/black update in validate (#111)
1 parent a818973 commit e7d7e31

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@ repos:
1616
- id: check-added-large-files
1717

1818
- repo: https://github.com/PyCQA/flake8
19-
rev: 6.1.0
19+
rev: 7.0.0
2020
hooks:
2121
- id: flake8
2222

2323
- repo: https://github.com/psf/black
24-
rev: 23.11.0
24+
rev: 24.1.1
2525
hooks:
2626
- id: black
2727

2828
- repo: https://github.com/pre-commit/mirrors-mypy
29-
rev: v1.7.0
29+
rev: v1.8.0
3030
hooks:
3131
- id: mypy
3232

3333
- repo: https://github.com/PyCQA/isort
34-
rev: 5.12.0
34+
rev: 5.13.2
3535
hooks:
3636
- id: isort

src/coherence/client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,19 +1221,19 @@ def __init__(self, session_options: Optional[Options] = None):
12211221
if self._session_options.tls_options is None:
12221222
self._channel: grpc.aio.Channel = grpc.aio.insecure_channel(
12231223
self._session_options.address,
1224-
options=options
1225-
if self._session_options.channel_options is None
1226-
else self._session_options.channel_options,
1224+
options=(
1225+
options if self._session_options.channel_options is None else self._session_options.channel_options
1226+
),
12271227
interceptors=interceptors,
12281228
)
12291229
else:
12301230
creds: grpc.ChannelCredentials = _get_channel_creds(self._session_options.tls_options)
12311231
self._channel = grpc.aio.secure_channel(
12321232
self._session_options.address,
12331233
creds,
1234-
options=options
1235-
if self._session_options.channel_options is None
1236-
else self._session_options.channel_options,
1234+
options=(
1235+
options if self._session_options.channel_options is None else self._session_options.channel_options
1236+
),
12371237
interceptors=interceptors,
12381238
)
12391239

0 commit comments

Comments
 (0)