Skip to content

Add binary operators to flag classes#164

Closed
rr- wants to merge 2 commits into
python-qt-tools:masterfrom
bubblesub:flags
Closed

Add binary operators to flag classes#164
rr- wants to merge 2 commits into
python-qt-tools:masterfrom
bubblesub:flags

Conversation

@rr-
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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