Skip to content

Commit adfe436

Browse files
committed
mypy fix
1 parent c15e8dc commit adfe436

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

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
)

packages/postgres-database/src/simcore_postgres_database/utils_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ def from_row(cls: type[ModelType], row: Any) -> ModelType:
2727
raise TypeError(msg)
2828

2929
field_names = [f.name for f in fields(cls)]
30-
return cls(**{k: v for k, v in mapping.items() if k in field_names}) # type: ignore[return-value]
30+
return cls(**{k: v for k, v in mapping.items() if k in field_names})

0 commit comments

Comments
 (0)