uuid-utils
uuid-utils copied to clipboard
typing doesn't match impl
import uuid_utils
from uuid_utils import uuid7
print(uuid_utils.__version__) # 0.9.0
u = uuid7()
print(u, u.is_safe)
https://github.com/aminalaee/uuid-utils/blob/926d2c26154126d31dcb7f9956b4f2400422be56/python/uuid_utils/init.pyi#L85-L86
print(u, u.is_safe)
^^^^^^^^^
AttributeError: 'uuid_utils.UUID' object has no attribute 'is_safe'
also kwargs is_safe doesn't exist
https://github.com/aminalaee/uuid-utils/blob/926d2c26154126d31dcb7f9956b4f2400422be56/python/uuid_utils/init.pyi#L83
also SafeUUID doesn't exists in uuid_utils/__init__.py, but exists in uuid_utils/__init__.pyi
Yes the whole safe UUID idea doesn't exist. Feel free to implement it.
I know nothing about uuid-rs, is generator safe to be called in a multiprocessing?
I think we should remove these typings, and add them back when someone implement it.
Adding them can't be hard. I will get to it for the next version.
looks like it's difficult to import some python variable and use it in pyo3...
https://github.com/aminalaee/uuid-utils/pull/70