Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python fixes #1353

Merged
merged 5 commits into from
Sep 21, 2024
Merged

Python fixes #1353

merged 5 commits into from
Sep 21, 2024

Conversation

EWouters
Copy link
Contributor

@EWouters EWouters commented Sep 17, 2024

First go-around of Python fixes with the Trunk linters. I'm trying to keep the PR's small to make them easier to review. The commits are in decreasing order of priority in my opinion. There are a some more linter issues remaining which I intend to submit an additional PR for.

Please let me know of any problems with these commits. Some changes may be opinionated.

backend/chainlit/auth.py Outdated Show resolved Hide resolved
backend/chainlit/cli/__init__.py Show resolved Hide resolved
backend/chainlit/session.py Outdated Show resolved Hide resolved
@@ -1 +1 @@
import chainlit as cl
import chainlit as cl # noqa: F401
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps this line can be removed entirely.

Copy link
Collaborator

@dokterbob dokterbob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another banger, @EWouters, love the help on this cleanup.

If you could please add the type declarations in un-commented version and remove the related noqa statements, I'm good to merge it. Best to get these larger things in fast to prevent merge conflict.s

backend/chainlit/auth.py Outdated Show resolved Hide resolved
backend/chainlit/cli/__init__.py Show resolved Hide resolved
backend/chainlit/session.py Outdated Show resolved Hide resolved
@dokterbob dokterbob merged commit 69ecdaf into Chainlit:main Sep 21, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants