Skip to content

Commit afa2ff7

Browse files
committed
Add optional values for CodeTFv3 types
1 parent 40bb897 commit afa2ff7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/codemodder/codetf/v3/codetf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ class FixStatus(BaseModel):
4141
"""Metadata describing fix outcome"""
4242

4343
status: FixStatusType
44-
reason: Optional[str]
45-
details: Optional[str]
44+
reason: Optional[str] = None
45+
details: Optional[str] = None
4646

4747

4848
class ChangeSet(BaseModel):
4949
path: str
5050
diff: str
51-
changes: list[Change]
51+
changes: list[Change] = []
5252

5353

5454
class Reference(BaseModel):
@@ -88,7 +88,7 @@ class FixMetadata(BaseModel):
8888
summary: str
8989
# A detailed description of the fix
9090
description: str
91-
references: list[Reference]
91+
references: list[Reference] = []
9292
generation: GenerationMetadata
9393

9494

0 commit comments

Comments
 (0)