Skip to content

Commit

Permalink
Linter fixups.
Browse files Browse the repository at this point in the history
  • Loading branch information
dokterbob committed Nov 21, 2024
1 parent 1aaf86b commit ce6f833
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions backend/chainlit/auth/__init__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import os
from datetime import datetime, timedelta
from typing import Any, Dict

import jwt
from fastapi import Depends, HTTPException

from chainlit.config import config
from chainlit.data import get_data_layer
from chainlit.logger import logger
from chainlit.oauth_providers import get_configured_oauth_providers
from chainlit.user import User

from .cookie import OAuth2PasswordBearerWithCookie
from .jwt import create_jwt, decode_jwt, get_jwt_secret
Expand Down Expand Up @@ -79,3 +75,6 @@ async def get_current_user(token: str = Depends(reuseable_oauth)):
return None

return await authenticate_user(token)


__all__ = ["create_jwt", "get_current_user", "get_configuration"]
2 changes: 1 addition & 1 deletion backend/chainlit/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import webbrowser
from contextlib import asynccontextmanager
from pathlib import Path
from typing import Any, Dict, Literal, Optional, Union, cast
from typing import Optional, Union

import socketio
from fastapi import (
Expand Down

0 comments on commit ce6f833

Please sign in to comment.