Title: Backward compatible class replaced by a function · Issue #280 · networktocode/diffsync · GitHub
Open Graph Title: Backward compatible class replaced by a function · Issue #280 · networktocode/diffsync
X Title: Backward compatible class replaced by a function · Issue #280 · networktocode/diffsync
Description: The diffsync.DiffSync class was changed to a function diffsync/diffsync/__init__.py Lines 897 to 904 in 7ca1717 def DiffSync(*args: Any, **kwargs: Any) -> Adapter: # noqa pylint: disable=invalid-name """For backwards-compatibility, keep ...
Open Graph Description: The diffsync.DiffSync class was changed to a function diffsync/diffsync/__init__.py Lines 897 to 904 in 7ca1717 def DiffSync(*args: Any, **kwargs: Any) -> Adapter: # noqa pylint: disable=invalid-na...
X Description: The diffsync.DiffSync class was changed to a function diffsync/diffsync/__init__.py Lines 897 to 904 in 7ca1717 def DiffSync(*args: Any, **kwargs: Any) -> Adapter: # noqa pylint: disable=invalid...
Opengraph URL: https://github.com/networktocode/diffsync/issues/280
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Backward compatible class replaced by a function","articleBody":"The `diffsync.DiffSync` class was changed to a function\r\n\r\nhttps://github.com/networktocode/diffsync/blob/7ca1717b9d3bce0b0c48063d8f8b20cbff6d6952/diffsync/__init__.py#L897-L904\r\n\r\n\r\nThis causes the import of any class using this as a base class to fail:\r\n\r\n```py\r\nimport diffsync\r\n\r\n\r\nclass TestAdapter(diffsync.DiffSync):\r\n \"\"\"A simple DiffSync adapter for testing purposes.\"\"\"\r\n```\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"/home/gary/github/nautobot/nautobot-app-device-onboarding/test_diffsync.py\", line 4, in \u003cmodule\u003e\r\n class TestAdapter(diffsync.DiffSync):\r\nTypeError: function() argument 'code' must be code, not str\r\n```","author":{"url":"https://github.com/gsnider2195","@type":"Person","name":"gsnider2195"},"datePublished":"2024-08-30T17:32:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/280/diffsync/issues/280"}
| 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:56bde246-fb4f-74f4-9aa8-12f5438fada5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 996E:1FD988:18ABAC4:1F2628F:69918B65 |
| html-safe-nonce | 7c5dd8a8e9bc91e46dc224b00293712df85ea541048409a8b3d1cbfe5da87602 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTZFOjFGRDk4ODoxOEFCQUM0OjFGMjYyOEY6Njk5MThCNjUiLCJ2aXNpdG9yX2lkIjoiNzQwMDY3MDQ5MzI0NDc1NDc4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d73c86f781bd3ee1820c11e0238579996cf6c344727b342e1d45ca59eb8c2c9d |
| hovercard-subject-tag | issue:2497857380 |
| github-keyboard-shortcuts | repository,issues,network-graph,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/networktocode/diffsync/280/issue_layout |
| twitter:image | https://opengraph.githubassets.com/43a56bed4e2c6dd489c0f086ee742b0dcb9482075edb5c1e0e95ea7fbc04c22b/networktocode/diffsync/issues/280 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/43a56bed4e2c6dd489c0f086ee742b0dcb9482075edb5c1e0e95ea7fbc04c22b/networktocode/diffsync/issues/280 |
| og:image:alt | The diffsync.DiffSync class was changed to a function diffsync/diffsync/__init__.py Lines 897 to 904 in 7ca1717 def DiffSync(*args: Any, **kwargs: Any) -> Adapter: # noqa pylint: disable=invalid-na... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gsnider2195 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/networktocode/diffsync git https://github.com/networktocode/diffsync.git |
| octolytics-dimension-user_id | 13106404 |
| octolytics-dimension-user_login | networktocode |
| octolytics-dimension-repository_id | 292296974 |
| octolytics-dimension-repository_nwo | networktocode/diffsync |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 292296974 |
| octolytics-dimension-repository_network_root_nwo | networktocode/diffsync |
| 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 | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width