Skip to content

Commit 09aad96

Browse files
authored
Make dependencies optional in pyproject schema, since they are (#225)
1 parent 91159d7 commit 09aad96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/workflows-dev/src/workflows_dev/changesets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import click
2222
import tomlkit
2323
from packaging.version import Version
24-
from pydantic import BaseModel
24+
from pydantic import BaseModel, Field
2525

2626

2727
def run_command(
@@ -194,4 +194,4 @@ def parse(cls, text: str) -> tuple[Any, PyProjectContainer]:
194194
class PyProject(BaseModel):
195195
name: str
196196
version: str
197-
dependencies: list[str]
197+
dependencies: list[str] = Field(default_factory=list)

0 commit comments

Comments
 (0)