We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.from_string
If you get an error like this:
07:57:08 py_dev.1 | [SQL: INSERT INTO visit_audio_file (id, user_id, azure_file_name) VALUES (%(id)s::UUID, %(user_id)s::UUID, %(azure_file_name)s::VARCHAR) RETURNING visit_audio_file.created_at, visit_audio_file.updated_at] 07:57:08 py_dev.1 | [parameters: {'id': UUID('0193df6c-2cca-739d-92a2-0cc4e260bc33'), 'user_id': TypeID('usr_01jf3nmnjdegsv7pm37scm12d7'), 'azure_file_name': 'user_2pB8MHVdVjSxOye98WwpMHalwlT_1734620228484_recording (1).wav'}] 07:57:08 py_dev.1 | (Background on this error at: https://sqlalche.me/e/20/f405)
You cannot copy/paste the TypeID into an ipython terminal. You need to append .from_string to the TypeID constructor.
TypeID
My proposal is we either:
TypeID()
__repr__
wdyt?
The text was updated successfully, but these errors were encountered:
Hi. What do you mean by adding .from_string to the __repr__?
Sorry, something went wrong.
typeid-python/typeid/typeid.py
Lines 50 to 51 in 0f27057
Something like:
def __repr__(self): return "%s.from_string(%r)" % (self.__class__.__name__, str(self))
No branches or pull requests
If you get an error like this:
You cannot copy/paste the
TypeID
into an ipython terminal. You need to append.from_string
to the TypeID constructor.My proposal is we either:
TypeID()
to accept a typeid uuid..from_string
to the__repr__
wdyt?
The text was updated successfully, but these errors were encountered: