More not allowing org id to be None in some cases (mypy only) (#2620)

This commit is contained in:
Asher Foa
2025-06-09 12:09:19 -04:00
committed by GitHub
parent 311e641908
commit fc1e7ae37e
7 changed files with 17 additions and 9 deletions

View File

@@ -12,7 +12,7 @@ class AISuggestion(AISuggestionBase):
model_config = ConfigDict(from_attributes=True)
ai_suggestion_type: str
ai_suggestion_id: str
organization_id: str | None = None
organization_id: str
created_at: datetime
modified_at: datetime

View File

@@ -30,7 +30,7 @@ class TaskV2(BaseModel):
observer_cruise_id: str = Field(alias="task_id")
status: TaskV2Status
organization_id: str | None = None
organization_id: str
workflow_run_id: str | None = None
workflow_id: str | None = None
workflow_permanent_id: str | None = None
@@ -99,7 +99,7 @@ class Thought(BaseModel):
observer_thought_id: str = Field(alias="thought_id")
observer_cruise_id: str = Field(alias="task_id")
organization_id: str | None = None
organization_id: str
workflow_run_id: str | None = None
workflow_run_block_id: str | None = None
workflow_id: str | None = None

View File

@@ -15,7 +15,7 @@ class WorkflowRunBlock(BaseModel):
workflow_run_block_id: str
block_workflow_run_id: str | None = None
workflow_run_id: str
organization_id: str | None = None
organization_id: str
description: str | None = None
parent_workflow_run_block_id: str | None = None
block_type: BlockType