Skip to content

Struct enum#1

Draft
crcrpar wants to merge 4 commits intomasterfrom
struct-enum
Draft

Struct enum#1
crcrpar wants to merge 4 commits intomasterfrom
struct-enum

Conversation

@crcrpar
Copy link
Copy Markdown
Owner

@crcrpar crcrpar commented Jun 28, 2022

No description provided.

Comment on lines +15 to +30
# ======================================================================
# ERROR: test_options_op_assignment_from_internal_enum (__main__.SimpleTest)
# ----------------------------------------------------------------------
# Traceback (most recent call last):
# File "/home/masaki/ghq/github.com/crcrpar/python_example/tests/test.py", line 16, in test_options_op_assignment_from_internal_enum
# opt_a.reduce_op = m.ReduceOp.SUM
# TypeError: (): incompatible function arguments. The following argument types are supported:
# 1. (self: python_example.Options, arg0: python_example.ReduceOp) -> None

# Invoked with: <python_example.Options object at 0x7f4fe49adcf0>, <Kind.SUM: 0>

# ----------------------------------------------------------------------
# Ran 3 tests in 0.000s
#
# FAILED (errors=1)
# note(crcrpar): Implcicit conversion is what might play a role?
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

ameliorate this comment.

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.

1 participant