FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

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

This repository was archived by the owner on Feb 2, 2026. It is now read-only.
/ python-ivi Public archive
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

Description

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__()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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


      Back | FazBrowse Home | New Git URL