typeid-python icon indicating copy to clipboard operation
typeid-python copied to clipboard

allow uuid.UUID in TypeID.from_uuid

Open rbuffat opened this issue 9 months ago • 1 comments

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.

rbuffat avatar Mar 27 '25 13:03 rbuffat

Looks like a good change to me

iloveitaly avatar Nov 12 '25 13:11 iloveitaly