Skip to content

Commit

Permalink
Avoid making last_resolved optional.
Browse files Browse the repository at this point in the history
Instead, default to `datetime.min` as its value.
  • Loading branch information
Flameeyes committed Aug 16, 2024
1 parent 68d5b36 commit d4dad25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipv6_in_real_life/data_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class Source:
countries_data: dict[str, CountryData] = dataclasses.field(
default_factory=dict
)
last_resolved: datetime.datetime | None = None
last_resolved: datetime.datetime = datetime.datetime.min

def extend_from_input(
self, input_entities: Iterable[dict[str, Any]]
Expand Down

0 comments on commit d4dad25

Please sign in to comment.