Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.
This repository was archived by the owner on Feb 2, 2026. It is now read-only.

python-ivi/ivi/ivi.py, class PropertyCollection does not expect any arguments #76

@ul-gh

Description

@ul-gh

Hi,

see: ivi.py#L142: PropertyCollection __init__ expects zero arguments.

However, further below in class IviContainer#L337, it is called with *args and **kwargs.

This causes a TypeError when called via the super constructor of any derived classe and when extra kwargs are proviced there.

Interestingly, this error does only appear when the extra kwargs are consumed first kwargs.pop() in class Driver#L1581.

==> IIRC, this works only by accident, because the order in which the base classes are initialized is not defined programmatically and thus it is not assured that the kwargs.pop() comes before PropertyCollections __init__.

==> Fix: From class IviContainer#L337 remove the *args and **kwargs: super(IviContainer, self).__init__()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions