Title: python-ivi/ivi/ivi.py, class PropertyCollection does not expect any arguments · Issue #76 · python-ivi/python-ivi · GitHub
Open Graph Title: python-ivi/ivi/ivi.py, class PropertyCollection does not expect any arguments · Issue #76 · python-ivi/python-ivi
X Title: python-ivi/ivi/ivi.py, class PropertyCollection does not expect any arguments · Issue #76 · python-ivi/python-ivi
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 deriv...
Open Graph 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 calle...
X 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 calle...
Opengraph URL: https://github.com/python-ivi/python-ivi/issues/76
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"python-ivi/ivi/ivi.py, class PropertyCollection does not expect any arguments","articleBody":"Hi,\r\n\r\nsee: [ivi.py#L142](https://github.com/python-ivi/python-ivi/blob/cfa45ceade0758debe4bc24ba4c8195222cad1e2/ivi/ivi.py#L142): `PropertyCollection __init__` expects zero arguments.\r\n\r\nHowever, further below in [class IviContainer#L337](https://github.com/python-ivi/python-ivi/blob/cfa45ceade0758debe4bc24ba4c8195222cad1e2/ivi/ivi.py#L337), it is called with `*args and **kwargs`.\r\n\r\nThis causes a `TypeError` when called via the super constructor of any derived classe and when extra kwargs are proviced there.\r\n\r\nInterestingly, this error does only appear when the extra kwargs are consumed first `kwargs.pop()` in [class Driver#L1581](https://github.com/python-ivi/python-ivi/blob/cfa45ceade0758debe4bc24ba4c8195222cad1e2/ivi/ivi.py#L1581).\r\n\r\n==\u003e 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__`.\r\n\r\n==\u003e Fix: From [class IviContainer#L337](https://github.com/python-ivi/python-ivi/blob/cfa45ceade0758debe4bc24ba4c8195222cad1e2/ivi/ivi.py#L337) remove the *args and **kwargs: `super(IviContainer, self).__init__()`\r\n","author":{"url":"https://github.com/ul-gh","@type":"Person","name":"ul-gh"},"datePublished":"2019-03-05T21:10:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/76/python-ivi/issues/76"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f5393b5e-6f1c-75d5-d7a2-d27f2489f180 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D3BC:1B7F5F:17BDE1:20F4C9:6977684C |
| html-safe-nonce | 2da98cd43b52f3b779bdd3321c1ea32e86a418e252cb331349bb640a02f3c044 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0JDOjFCN0Y1RjoxN0JERTE6MjBGNEM5OjY5Nzc2ODRDIiwidmlzaXRvcl9pZCI6IjQyMzEyOTUzNjg0MjM5MzY3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 48ab0caa0767f474ec9c64ec6de966ccbd84344c0e1784fe93248c4599781247 |
| hovercard-subject-tag | issue:417502744 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-ivi/python-ivi/76/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e5f1a593c8208304cec348806a72eaa2999fa3a2f784b4c69ef8667147fd0ed0/python-ivi/python-ivi/issues/76 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e5f1a593c8208304cec348806a72eaa2999fa3a2f784b4c69ef8667147fd0ed0/python-ivi/python-ivi/issues/76 |
| og:image:alt | 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 calle... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ul-gh |
| hostname | github.com |
| expected-hostname | github.com |
| None | 425384cc392ce2ddd1a7a0c1e7043ab4192d4c04452a2ed7f2f38d2fa9293b5a |
| turbo-cache-control | no-preview |
| go-import | github.com/python-ivi/python-ivi git https://github.com/python-ivi/python-ivi.git |
| octolytics-dimension-user_id | 6889594 |
| octolytics-dimension-user_login | python-ivi |
| octolytics-dimension-repository_id | 6012233 |
| octolytics-dimension-repository_nwo | python-ivi/python-ivi |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 6012233 |
| octolytics-dimension-repository_network_root_nwo | python-ivi/python-ivi |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 72de26f7ca9bdb0559ebf1e63e6c685ee2c520ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width