Skip to content

59 fix params dict serializing and deserializing#60

Merged
lfse-slafleur merged 6 commits intomainfrom
59-fix-params-dict-serializing-and-deserializing
Jul 25, 2024
Merged

59 fix params dict serializing and deserializing#60
lfse-slafleur merged 6 commits intomainfrom
59-fix-params-dict-serializing-and-deserializing

Conversation

@lfse-slafleur
Copy link
Copy Markdown
Member

No description provided.

@lfse-slafleur lfse-slafleur self-assigned this Jul 23, 2024
@lfse-slafleur lfse-slafleur linked an issue Jul 23, 2024 that may be closed by this pull request
elif isinstance(value, timedelta):
elif type(value) is timedelta:
normalized_dict[key] = value.total_seconds()
elif type(value) is int:
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It turns out that isinstance(True, int) == True. As in bool values in Python are also integers. Never knew this xD

@lfse-slafleur lfse-slafleur marked this pull request as ready for review July 24, 2024 10:11
Comment thread unit_test/internal/worker/test_params_dict.py
Comment thread unit_test/internal/worker/test_params_dict.py
Comment thread src/omotes_sdk/internal/worker/params_dict.py Outdated
@lfse-slafleur lfse-slafleur requested a review from cwang39403 July 25, 2024 15:10
@lfse-slafleur lfse-slafleur merged commit 1d3a948 into main Jul 25, 2024
@lfse-slafleur lfse-slafleur deleted the 59-fix-params-dict-serializing-and-deserializing branch July 25, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix params dict serializing and deserializing

3 participants