Add PostgresDataLayer from ChainlitDataLayer #62
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
|