Skip to content

toPyObject() #21

@thorade

Description

@thorade

The following code:

if hasattr(inst, 'toPyObject'):
    inst = inst.toPyObject()

gets converted to:

if hasattr(inst, 'toPyObject'):
    inst = inst

I am unsure whether this is correct!?
Or should it be converted to

if hasattr(inst, 'toPyObject'):
    inst = inst.value()

http://pyqt.sourceforge.net/Docs/PyQt5/pyqt_qvariant.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions