We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/kliment/Printrun/blame/9a759a03e6893991876a6fe5549b3ac8498e72ae/printrun/gui/widgets.py#L308 introduced in commit 4e3d90a produces the following error on a machine running Python 3.9.2. (I'll see if we can automate detecting this kind of errors)
$ ./pronterface.py Traceback (most recent call last): File "/home/rock/Printrun/./pronterface.py", line 30, in <module> from printrun.pronterface import PronterApp File "/home/rock/Printrun/printrun/pronterface.py", line 32, in <module> from . import pronsole File "/home/rock/Printrun/printrun/pronsole.py", line 41, in <module> from .settings import Settings, BuildDimensionsSetting File "/home/rock/Printrun/printrun/settings.py", line 26, in <module> from .gui.widgets import get_space File "/home/rock/Printrun/printrun/gui/__init__.py", line 29, in <module> from .controls import ControlsSizer, add_extra_controls File "/home/rock/Printrun/printrun/gui/controls.py", line 21, in <module> from .widgets import TempGauge File "/home/rock/Printrun/printrun/gui/widgets.py", line 159, in <module> class FindAndReplace(): File "/home/rock/Printrun/printrun/gui/widgets.py", line 308, in FindAndReplace def bools_to_flags(self, bools: tuple | list) -> int: TypeError: unsupported operand type(s) for |: 'type' and 'type'
I haven't looked much onto it but the quick and dirty change below seems to do the trick. Any better ideas @neofelis2X?
- def bools_to_flags(self, bools: tuple | list) -> int: + def bools_to_flags(self, bools) -> int:
The text was updated successfully, but these errors were encountered:
Oh damn, I was blissfully unaware that this | is only supported 3.10+. Yes I think a simple and pragmatic fix like this is good.
|
I will set up an older python version to test too.
Sorry, something went wrong.
b3a9e80
No branches or pull requests
https://github.com/kliment/Printrun/blame/9a759a03e6893991876a6fe5549b3ac8498e72ae/printrun/gui/widgets.py#L308 introduced in commit 4e3d90a produces the following error on a machine running Python 3.9.2. (I'll see if we can automate detecting this kind of errors)
I haven't looked much onto it but the quick and dirty change below seems to do the trick. Any better ideas @neofelis2X?
The text was updated successfully, but these errors were encountered: