Skip to content

Commit 1d4e2f0

Browse files
committed
mypy
1 parent 000715b commit 1d4e2f0

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

packages/aws-library/src/aws_library/s3/_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ async def create(
9494
# don't need them, improving performance.
9595
# See: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3.html#calculating-checksums
9696
signature_version="s3v4",
97-
request_checksum_calculation="when_required", # type: ignore[call-arg]
97+
request_checksum_calculation="when_required",
9898
)
9999
session_client = session.client( # type: ignore[call-overload]
100100
"s3",

packages/postgres-database/src/simcore_postgres_database/migration/versions/10b293fdcd56_alters_product_login_settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def upgrade():
4141
"products",
4242
"login_settings",
4343
server_default=sa.text("'{}'::jsonb"),
44-
existing_server_default=sa.text("'{\"two_factor_enabled\": false}'::jsonb"), # type: ignore[arg-type]
44+
existing_server_default=sa.text("'{\"two_factor_enabled\": false}'::jsonb"),
4545
)
4646

4747

@@ -68,6 +68,6 @@ def downgrade():
6868
"products",
6969
"login_settings",
7070
existing_type=postgresql.JSONB(astext_type=sa.Text()),
71-
existing_server_default=sa.text("'{}'::jsonb"), # type: ignore[arg-type]
71+
existing_server_default=sa.text("'{}'::jsonb"),
7272
server_default=sa.text("'{\"two_factor_enabled\": false}'::jsonb"),
7373
)

packages/postgres-database/src/simcore_postgres_database/migration/versions/a8f0bacbbaef_product_issue_cols_nullable.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def upgrade():
2323
"issues_login_url",
2424
existing_type=sa.VARCHAR(),
2525
nullable=True,
26-
existing_server_default=sa.text( # type: ignore[arg-type]
26+
existing_server_default=sa.text(
2727
"'https://github.com/ITISFoundation/osparc-simcore/issues'::character varying"
2828
),
2929
)
@@ -32,7 +32,7 @@ def upgrade():
3232
"issues_new_url",
3333
existing_type=sa.VARCHAR(),
3434
nullable=True,
35-
existing_server_default=sa.text( # type: ignore[arg-type]
35+
existing_server_default=sa.text(
3636
"'https://github.com/ITISFoundation/osparc-simcore/issues/new'::character varying"
3737
),
3838
)
@@ -46,7 +46,7 @@ def downgrade():
4646
"issues_new_url",
4747
existing_type=sa.VARCHAR(),
4848
nullable=False,
49-
existing_server_default=sa.text( # type: ignore[arg-type]
49+
existing_server_default=sa.text(
5050
"'https://github.com/ITISFoundation/osparc-simcore/issues/new'::character varying"
5151
),
5252
)
@@ -55,7 +55,7 @@ def downgrade():
5555
"issues_login_url",
5656
existing_type=sa.VARCHAR(),
5757
nullable=False,
58-
existing_server_default=sa.text( # type: ignore[arg-type]
58+
existing_server_default=sa.text(
5959
"'https://github.com/ITISFoundation/osparc-simcore/issues'::character varying"
6060
),
6161
)

services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/mounted_fs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ async def iter_state_paths_to_docker_volumes(
162162
def setup_mounted_fs(app: FastAPI) -> MountedVolumes:
163163
settings: ApplicationSettings = app.state.settings
164164

165-
app.state.mounted_volumes = MountedVolumes(
165+
app.state.mounted_volumes = mounted_volumes = MountedVolumes(
166166
service_run_id=settings.DY_SIDECAR_RUN_ID,
167167
node_id=settings.DY_SIDECAR_NODE_ID,
168168
inputs_path=settings.DY_SIDECAR_PATH_INPUTS,
@@ -174,4 +174,4 @@ def setup_mounted_fs(app: FastAPI) -> MountedVolumes:
174174
dy_volumes=settings.DYNAMIC_SIDECAR_DY_VOLUMES_MOUNT_DIR,
175175
)
176176

177-
return app.state.mounted_volumes
177+
return mounted_volumes

0 commit comments

Comments
 (0)