
from uuid import UUID


UserID = UUID

BrandID = str

PartyID = str


from typing import NewType
from uuid import UUID


UserID = NewType('UserID', UUID)

BrandID = NewType('BrandID', str)

PartyID = NewType('PartyID', str)

Make BYCEPS-specific types actual lightweight types
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.

  
+ 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
## Code Before:

from uuid import UUID


UserID = UUID

BrandID = str

PartyID = str

## Instruction:
Make BYCEPS-specific types actual lightweight types
## Code After:

from typing import NewType
from uuid import UUID


UserID = NewType('UserID', UUID)

BrandID = NewType('BrandID', str)

PartyID = NewType('PartyID', str)
