Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class DateProperty(BasePageProperty):
"""A page property of type 'date'."""

type: Literal["date"] = "date"
date: DateValue = Field(
date: Optional[DateValue] = Field(
...,
description="The value of the date property, including start and optional end.",
)
Expand Down Expand Up @@ -217,7 +217,7 @@ class MultiSelectProperty(BasePageProperty):
# number: Refer to https://developers.notion.com/reference/page-property-values#number
class NumberProperty(BasePageProperty):
type: Literal["number"] = "number"
number: float
number: Optional[float] = None


# people: Refer to https://developers.notion.com/reference/page-property-values#people
Expand Down Expand Up @@ -359,7 +359,7 @@ def new_text(
# select: Refer to https://developers.notion.com/reference/page-property-values#select
class SelectProperty(BasePageProperty):
type: Literal["select"] = "select"
select: SelectOption
select: Optional[SelectOption] = None

@classmethod
def new(
Expand Down