Skip to content

Commit b68872a

Browse files
committed
fix: remove plan_id from plan block
1 parent c9cf449 commit b68872a

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

slack_sdk/models/blocks/blocks.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,6 @@ class PlanBlock(Block):
849849
def attributes(self) -> Set[str]: # type: ignore[override]
850850
return super().attributes.union(
851851
{
852-
"plan_id",
853852
"title",
854853
"tasks",
855854
}
@@ -858,7 +857,6 @@ def attributes(self) -> Set[str]: # type: ignore[override]
858857
def __init__(
859858
self,
860859
*,
861-
plan_id: str,
862860
title: str,
863861
tasks: Optional[Sequence[Union[Dict, TaskCardBlock]]] = None,
864862
block_id: Optional[str] = None,
@@ -872,14 +870,11 @@ def __init__(
872870
Maximum length for this field is 255 characters.
873871
block_id should be unique for each message and each iteration of a message.
874872
If a message is updated, use a new block_id.
875-
plan_id (required): ID for the plan (May be removed / made optional, feel free to pass in a random UUID
876-
for now)
877873
title (required): Title of the plan in plain text
878874
tasks: Details of the task in the form of a single "rich_text" entity.
879875
"""
880876
super().__init__(type=self.type, block_id=block_id)
881877
show_unknown_key_warning(self, others)
882878

883-
self.plan_id = plan_id
884879
self.title = title
885880
self.tasks = tasks

tests/slack_sdk/models/test_blocks.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,6 @@ class PlanBlockTests(unittest.TestCase):
901901
def test_document(self):
902902
input = {
903903
"type": "plan",
904-
"plan_id": "plan_1",
905904
"title": "Thinking completed",
906905
"tasks": [
907906
{

0 commit comments

Comments
 (0)