mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-11 11:56:53 +08:00
chore: avoid implicit optional in type annotations of method (#8727)
This commit is contained in:
@@ -321,7 +321,7 @@ class TenantService:
|
||||
return tenant
|
||||
|
||||
@staticmethod
|
||||
def switch_tenant(account: Account, tenant_id: int = None) -> None:
|
||||
def switch_tenant(account: Account, tenant_id: Optional[int] = None) -> None:
|
||||
"""Switch the current workspace for the account"""
|
||||
|
||||
# Ensure tenant_id is provided
|
||||
|
||||
Reference in New Issue
Block a user