"""
byceps.typing
~~~~~~~~~~~~~

BYCEPS-specific type aliases for PEP 484 type hints

:Copyright: 2006-2017 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""

from typing import NewType
from uuid import UUID


UserID = NewType('UserID', UUID)

BrandID = NewType('BrandID', str)

PartyID = NewType('PartyID', str)

"""
byceps.typing
~~~~~~~~~~~~~

BYCEPS-specific type aliases for PEP 484 type hints

:Copyright: 2006-2017 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""

from uuid import UUID


UserID = UUID

BrandID = str

PartyID = str

--- 
+++ 
@@ -8,11 +8,12 @@
 :License: Modified BSD, see LICENSE for details.
 """
 
+from typing import NewType
 from uuid import UUID
 
 
-UserID = UUID
+UserID = NewType('UserID', UUID)
 
-BrandID = str
+BrandID = NewType('BrandID', str)
 
-PartyID = str
+PartyID = NewType('PartyID', str)
Make BYCEPS-specific types actual lightweight types

This makes mypy report the custom type names in error messages instead of the existing types the alias.
