Skip to content

Commit

Permalink
Final tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
dokterbob committed Nov 19, 2024
1 parent f356a42 commit 56db667
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 3 additions & 1 deletion backend/chainlit/data/literalai.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,9 @@ async def delete_element(self, element_id: str, thread_id: Optional[str] = None)
async def create_step(self, step_dict: "StepDict"):
metadata = dict(
step_dict.get("metadata", {}),
waitForAnswer=step_dict.get("waitForAnswer"), language=step_dict.get("language"), showInput=step_dict.get("showInput"),
waitForAnswer=step_dict.get("waitForAnswer"),
language=step_dict.get("language"),
showInput=step_dict.get("showInput"),
)

step: LiteralStepDict = {
Expand Down
6 changes: 3 additions & 3 deletions backend/chainlit/emitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@ async def send_ask_user(
# End the task temporarily so that the User can answer the prompt
await self.task_end()

final_res: Optional[
Union[StepDict, AskActionResponse, List[FileDict]]
] = None
final_res: Optional[Union[StepDict, AskActionResponse, List[FileDict]]] = (
None
)

if user_res:
interaction: Union[str, None] = None
Expand Down
3 changes: 1 addition & 2 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,10 @@ asyncio_mode = "auto"

[tool.ruff]
target-version = "py39"
line-length = 120

[tool.ruff.lint]
select = ["E", "F", "I", "LOG", "UP", "T10", "ISC", "ICN", "LOG", "G", "PIE", "PT", "Q", "RSE", "FURB", "RUF"]
ignore = ["E712", "E501", "UP006", "UP035","PIE790", "PT004", "RUF005", "RUF006", "RUF012"]
ignore = ["E712", "E501", "UP006", "UP035","PIE790", "PT004", "RUF005", "RUF006", "RUF012", "ISC001"]

[tool.ruff.lint.isort]
combine-as-imports = true

0 comments on commit 56db667

Please sign in to comment.