Skip to content

NoneDate

datethyme.NoneDate

Bases: OptionalDate, BaseModel

Empty date for cases where this may be superior to using None.

Methods:

Attributes:

model_config = ConfigDict(frozen=True) class-attribute instance-attribute

year: None = Field(default=None, frozen=True) class-attribute instance-attribute

month: None = Field(default=None, frozen=True) class-attribute instance-attribute

day: None = Field(default=None, frozen=True) class-attribute instance-attribute

__init__() -> None

__str__() -> str

__repr__() -> str

__add__(_: Any) -> Self

Simply returns itself: nt + 42 == nt

__sub__(_: Any) -> Self

Simply returns itself: nt - 42 == nt

__bool__() -> bool

False in all cases.

__eq__(other: object) -> bool

NoneDate is only equal to instances of NoneDate.

__lt__(other: object) -> bool

False in all cases.

__gt__(other: object) -> bool

False in all cases.

__le__(other: object) -> bool

False in all cases.

__ge__(other: object) -> bool

False in all cases.