mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 01:18:05 +08:00
remove bare list, dict, Sequence, None, Any (#25058)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
@ -6,7 +6,7 @@ from core.rag.rerank.rerank_base import BaseRerankRunner
|
||||
|
||||
|
||||
class RerankModelRunner(BaseRerankRunner):
|
||||
def __init__(self, rerank_model_instance: ModelInstance) -> None:
|
||||
def __init__(self, rerank_model_instance: ModelInstance):
|
||||
self.rerank_model_instance = rerank_model_instance
|
||||
|
||||
def run(
|
||||
|
||||
@ -14,7 +14,7 @@ from core.rag.rerank.rerank_base import BaseRerankRunner
|
||||
|
||||
|
||||
class WeightRerankRunner(BaseRerankRunner):
|
||||
def __init__(self, tenant_id: str, weights: Weights) -> None:
|
||||
def __init__(self, tenant_id: str, weights: Weights):
|
||||
self.tenant_id = tenant_id
|
||||
self.weights = weights
|
||||
|
||||
|
||||
Reference in New Issue
Block a user