Skip to content
New issue

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

[hotfix] workload size string assignment #495

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jbrill
Copy link

@jbrill jbrill commented Jan 3, 2024

Resolves #494

Copy link
Contributor

@mgyucht mgyucht left a comment

Choose a reason for hiding this comment

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

This is an autogenerated file, and your change will be removed during the next release of the SDK.

We are planning some work to make the Python SDK accept strings in place of enums and objects in place of dataclasses, but that will be a global change that applies to all APIs in the SDK.

@jbrill
Copy link
Author

jbrill commented Jan 3, 2024

This is an autogenerated file, and your change will be removed during the next release of the SDK.

We are planning some work to make the Python SDK accept strings in place of enums and objects in place of dataclasses, but that will be a global change that applies to all APIs in the SDK.

Sounds good. I was able to circumvent the issue temporarily by passing an object directly to the workload_size parameter:

class WorkloadSize:
    def __init__(self, value):
        self.value = value

workload_size = WorkloadSize("Small")

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.

workload_size should expect a str, not an object which references value
2 participants