Skip to content

Commit f065e7e

Browse files
author
Jens Kürten
committed
fix: attached parts not documents
1 parent 0f9a16f commit f065e7e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

csfunctions/events/part_create_check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
from pydantic import BaseModel, Field
44

5-
from csfunctions.objects import Document, Part
5+
from csfunctions.objects import Part
66

77
from .base import BaseEvent, EventNames
88

99

1010
class PartCreateCheckData(BaseModel):
1111
parts: list[Part] = Field(..., description="List of parts that are about to be created")
12-
attached_documents: list[Document] = Field(..., description="Contains the original part(s) if a part is a copy")
12+
attached_parts: list[Part] = Field(..., description="Contains the original part(s) if a part is a copy")
1313

1414

1515
class PartCreateCheckEvent(BaseEvent):

docs/reference/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ The event is triggered before any field calculations are performed.
144144
|Attribute|Type|Description|
145145
|-|-|-|
146146
|parts| list[[Part](objects.md#part)]|List of parts that are about to be created.|
147-
|attached_documents| list[[Document](objects.md#document)]|Contains the original part(s) if a part is a copy.|
147+
|attached_parts| list[[Part](objects.md#part)]|Contains the original part(s) if a part is a copy.|
148148

149149
## PartModifyCheckEvent
150150
`csfunctions.events.PartModifyCheckEvent`

0 commit comments

Comments
 (0)