Skip to content

Add binary operators to flag classes #164

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

Closed
wants to merge 2 commits into from

Conversation

rr-
Copy link

@rr- rr- commented Aug 28, 2021

Includes a script in similar vibe to #162

Fixes errors such as

error: Unsupported operand types for & ("State" and "StateFlag")
note: Left operand is of type "Union[State, StateFlag]"
error: Unsupported operand types for & ("KeyboardModifiers" and "KeyboardModifier")

@bluebird75
Copy link
Collaborator

Hi Marcin. Very nice effort. I have been running more or less the same effort in #153 . My work is a bit more extensive because I tried to cover all operations on QFlag and enum test bases. I am also using libcst for this effort.

I also discovered that not all QFlag based classes are equally implemented, some of them have special handling of the OR combination and some not.

@rr-
Copy link
Author

rr- commented Sep 13, 2021

@bluebird75 thank you. I didn't notice your PR so sorry for the duplicated effort. Let's go with your PR. I'd appreciate if you looked at my script and checked if there's anything you like to incorporate within your PR :)

@rr- rr- closed this Sep 13, 2021
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.

2 participants