ref: Some fixes for ruff rules preview mode (#4197)

* Some fixes for ruff rules preview mode

* Fix mypy error

* More Annotated[] types for fastapi endpoints

* Use type aliases for Depends(get_session) and Depends(get_current_active_user)
This commit is contained in:
Christophe Bornet 2024-10-22 16:04:31 +02:00 • committed by GitHub
commit f0eb7b50a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 189 additions and 192 deletions

View file

@ -29,14 +29,17 @@ __all__ = [
"CodeInput",
"DataInput",
"DefaultPromptField",
"DefaultPromptField",
"DictInput",
"DropdownInput",
"FileInput",
"FloatInput",
"HandleInput",
"Input",
"Input",
"IntInput",
"LinkInput",
"LinkInput",
"MessageInput",
"MessageTextInput",
"MultilineInput",
@ -45,10 +48,7 @@ __all__ = [
"NestedDictInput",
"PromptInput",
"SecretStrInput",
"SliderInput",
"StrInput",
"TableInput",
"Input",
"DefaultPromptField",
"LinkInput",
"SliderInput",
]