Skip to content

YRoom - TypeError: unsupported operand type(s) for 'in': 'int' and 'EnumType' #53

@Zsailer

Description

@Zsailer

This line is causing the following Traceback in Python 3.11 for me:

Traceback (most recent call last):
  File "/Users/zacharysailer/Documents/oss/jupyter-rtc-core/jupyter_rtc_core/rooms/yroom.py", line 174, in _process_message_queue
    invalid_message_type = message_type not in YMessageType
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/zacharysailer/miniforge3/envs/jupyter-rtc-core/lib/python3.11/enum.py", line 742, in __contains__
    raise TypeError(
TypeError: unsupported operand type(s) for 'in': 'int' and 'EnumType'

Originally posted by @Zsailer in #50 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions