chore: apply and fix flake8-bugbear lint rules (#4496)

This commit is contained in:
Bowen Liang 2024-05-20 16:34:13 +08:00 • committed by GitHub
commit e8e213ad1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9 additions and 6 deletions

View file

@ -1,4 +1,3 @@
from abc import ABC
from typing import Optional
from core.model_runtime.entities.llm_entities import LLMResult, LLMResultChunk
@ -14,7 +13,7 @@ _TEXT_COLOR_MAPPING = {
}
class Callback(ABC):
class Callback:
"""
Base class for callbacks.
Only for LLM.