Adjusted comment in cargo shipping example.
-# This is a port of the original Cargo Shipping example
-# that figures in the DDD book, as coded in the "DDD Sample"
-# project. As it says on the website, "This project is a
-# joint effort by Eric Evans' company Domain Language and
-# the Swedish software consulting company Citerus.
-#
-# http://dddsample.sourceforge.net/
-#
-# "One of the most requested aids to coming up to speed on DDD
-# has been a running example application. Starting from a simple
-# set of functions and a model based on the cargo example used
-# in Eric Evans' book, we have built a running application with
-# which to demonstrate a practical implementation of the building
-# block patterns as well as illustrate the impact of aggregates
-# and bounded contexts."
+"""
+This example follows the original Cargo Shipping example
+that figures in the DDD book, as coded in the "DDD Sample"
+project. As it says on the project website, "This project is a
+joint effort by Eric Evans' company Domain Language and
+the Swedish software consulting company Citerus.
+
+ - http://dddsample.sourceforge.net/
+
+"One of the most requested aids to coming up to speed on DDD
+has been a running example application. Starting from a simple
+set of functions and a model based on the cargo example used
+in Eric Evans' book, we have built a running application with
+which to demonstrate a practical implementation of the building
+block patterns as well as illustrate the impact of aggregates
+and bounded contexts."
+
+"""
from datetime import datetime, timedelta
from enum import Enum
@@ -27,8 +30,30 @@ from eventsourcing.application.system import (
SingleThreadedRunner,
System,
)
-from eventsourcing.domain.model.aggregate import AggregateRoot, TAggregate, TAggregateEvent
-from eventsourcing.exceptions import RepositoryKeyError
+from eventsourcing.domain.model.aggregate import (
+ AggregateRoot,
+ TAggregate,
+ TAggregateEvent,
+)
+
+from datetime import datetime, timedelta
+from enum import Enum
+from typing import Any, Dict, List, Optional, Tuple, Type, TypeVar, Union
+from unittest import TestCase
+from uuid import UUID
+
+from eventsourcing.application.process import ProcessApplication
+from eventsourcing.application.sqlalchemy import SQLAlchemyApplication
+from eventsourcing.application.system import (
+ InProcessRunner,
+ SingleThreadedRunner,
+ System,
+)
+from eventsourcing.domain.model.aggregate import (
+ AggregateRoot,
+ TAggregate,
+ TAggregateEvent,
+)
# Locations in the world.
