Skip to content

Add PostgresDataLayer from ChainlitDataLayer #62

Add PostgresDataLayer from ChainlitDataLayer

Add PostgresDataLayer from ChainlitDataLayer #62

Triggered via pull request January 30, 2025 18:03
@dokterbobdokterbob
synchronize #12
postgres
Status Failure
Total duration 4m 19s
Artifacts

ci.yaml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

9 errors
lint: packages/data_layers/postgres/src/chainlit_postgres/data_layer.py#L158
Argument of type "dict[str, str | dict[Unknown, Unknown] | datetime]" cannot be assigned to parameter "step_dict" of type "StepDict" in function "create_step"   "start_time" is an undefined item in type "StepDict"   "end_time" is an undefined item in type "StepDict" (reportArgumentType)
lint: packages/data_layers/postgres/src/chainlit_postgres/data_layer.py#L287
Could not access item in TypedDict   "threadId" is not a required key in "StepDict", so access may result in runtime exception (reportTypedDictNotRequiredAccess)
lint: packages/data_layers/postgres/src/chainlit_postgres/data_layer.py#L290
Could not access item in TypedDict   "threadId" is not a required key in "StepDict", so access may result in runtime exception (reportTypedDictNotRequiredAccess)
lint: packages/data_layers/postgres/src/chainlit_postgres/data_layer.py#L295
Could not access item in TypedDict   "parentId" is not a required key in "StepDict", so access may result in runtime exception (reportTypedDictNotRequiredAccess)
lint: packages/data_layers/postgres/src/chainlit_postgres/data_layer.py#L300
Could not access item in TypedDict   "parentId" is not a required key in "StepDict", so access may result in runtime exception (reportTypedDictNotRequiredAccess)
lint: packages/data_layers/postgres/src/chainlit_postgres/data_layer.py#L300
Argument of type "dict[str, str | dict[Unknown, Unknown] | None]" cannot be assigned to parameter "step_dict" of type "StepDict" in function "create_step"   Type "str | None" is not assignable to type "str"     "None" is not assignable to "str" (reportArgumentType)
lint: packages/data_layers/postgres/src/chainlit_postgres/data_layer.py#L340
Could not access item in TypedDict   "id" is not a required key in "StepDict", so access may result in runtime exception (reportTypedDictNotRequiredAccess)
lint: packages/data_layers/postgres/src/chainlit_postgres/data_layer.py#L347
Could not access item in TypedDict   "type" is not a required key in "StepDict", so access may result in runtime exception (reportTypedDictNotRequiredAccess)
lint
8 errors