-
Notifications
You must be signed in to change notification settings - Fork 3
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
IWF-157: Fix typo IdReusePolicy of ALLOW_IF_PREVIOUS_EXISTS_ABNORMALLY #33
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I guess we need to upgrade this to use official action: https://github.com/marketplace/actions/install-poetry-action This is no longer working properly with old nodeJs: knowsuchagency/poetry-install#4 |
This comment was marked as resolved.
This comment was marked as resolved.
.github/workflows/tests.yml
Outdated
env: | ||
POETRY_VIRTUALENVS_CREATE: false | ||
with: | ||
virtualenvs-create: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I copied this value from somewhere else but didn't fully understand. do you know why this has to be 'false'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No I don't know. I'm also not sure if calling 'poetry install' here will cause any downsides? It fixed the workflow issues.
@@ -291,7 +291,7 @@ def default(self, o: Any) -> Any: | |||
See :py:meth:`json.JSONEncoder.default`. | |||
""" | |||
# Dataclass support | |||
if dataclasses.is_dataclass(o): | |||
if dataclasses.is_dataclass(o) and not isinstance(o, type): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes mypy error:
No overload variant of "asdict" matches argument type "Type[DataclassInstance]" [call-overload]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see this error before.
Did you find this fix somewhere? can you put a reference here for more context?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found the fix here: python/mypy#17550 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!
No description provided.