Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
6.0.0
-
None
-
On Ubuntu 20.04
Using poetry for dependency mgt
{code:bash}
$ poetry show
astroid 2.5 An abstract syntax tree for Python with inference support.
editorconfig 0.12.3 EditorConfig File Locator and Interpreter for Python
isort 5.7.0 A Python utility / library to sort Python imports.
jsbeautifier 1.13.5 JavaScript unobfuscator and beautifier.
lazy-object-proxy 1.5.2 A fast and thorough lazy object proxy.
mccabe 0.6.1 McCabe checker, plugin for flake8
pylint 2.7.0 python code static checker
pyside6 6.0.1 Python bindings for the Qt cross-platform application and UI framework
shiboken6 6.0.1 Python / C++ bindings helper module
six 1.15.0 Python 2 and 3 compatibility utilities
toml 0.10.2 Python Library for Tom's Obvious, Minimal Language
wrapt 1.12.1 Module for decorators, wrappers and monkey patching.
{code}On Ubuntu 20.04 Using poetry for dependency mgt {code:bash} $ poetry show astroid 2.5 An abstract syntax tree for Python with inference support. editorconfig 0.12.3 EditorConfig File Locator and Interpreter for Python isort 5.7.0 A Python utility / library to sort Python imports. jsbeautifier 1.13.5 JavaScript unobfuscator and beautifier. lazy-object-proxy 1.5.2 A fast and thorough lazy object proxy. mccabe 0.6.1 McCabe checker, plugin for flake8 pylint 2.7.0 python code static checker pyside6 6.0.1 Python bindings for the Qt cross-platform application and UI framework shiboken6 6.0.1 Python / C++ bindings helper module six 1.15.0 Python 2 and 3 compatibility utilities toml 0.10.2 Python Library for Tom's Obvious, Minimal Language wrapt 1.12.1 Module for decorators, wrappers and monkey patching. {code}
Description
When calling the `QtQuick.QQuickImageProvider._init_` method with a named argument, a TypeError is raised:
class GenericImageProviderKwargs(QtQuick.QQuickImageProvider): def __init__(self): super().__init__(type=QtQuick.QQuickImageProvider.ImageType.Image) def requestImage(self, id_, size, requested_size): pass # not relevant to this report provider = GenericImageProviderKwargs()
Traceback (most recent call last): File "pyside-kwargs.py", line 22, in <module> provider = GenericImageProviderKwargs() File "pyside-kwargs.py", line 17, in __init__ super().__init__(type=QtQuick.QQuickImageProvider.ImageType.Image) TypeError: PySide6.QtQuick.QQuickImageProvider.__init__(): not enough arguments
Doing away with the `type=` keyword works around it.