typeid-python
typeid-python copied to clipboard
allow uuid.UUID in TypeID.from_uuid
With the recent release 0.3.2 we ran into mypy errors when passing a uuid.UUID to TypeID.from_uuid:
error: Argument "suffix" to "from_uuid" has incompatible type "uuid.UUID"; expected "uuid6.UUID" [arg-type]
uuid6.UUID subclasses uuid.UUID. This PR allows to pass uuid.UUID to TypeID.from_uuid.
Looks like a good change to me