Title: UNSET values in `repr` are extremely verbose · Issue #463 · openapi-generators/openapi-python-client · GitHub
Open Graph Title: UNSET values in `repr` are extremely verbose · Issue #463 · openapi-generators/openapi-python-client
X Title: UNSET values in `repr` are extremely verbose · Issue #463 · openapi-generators/openapi-python-client
Description: Is your feature request related to a problem? Please describe. When printing out models, we often get extremely verbose strings, such as: CustomEntityUpdate(entity_registry_id=
Open Graph Description: Is your feature request related to a problem? Please describe. When printing out models, we often get extremely verbose strings, such as: CustomEntityUpdate(entity_registry_id= X Description: Is your feature request related to a problem? Please describe. When printing out models, we often get extremely verbose strings, such as: CustomEntityUpdate(entity_registry_id=<benchling_api_cli...
Opengraph URL: https://github.com/openapi-generators/openapi-python-client/issues/463
X: @github
Domain: patch-diff.githubusercontent.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"UNSET values in `repr` are extremely verbose","articleBody":"**Is your feature request related to a problem? Please describe.**\r\nWhen printing out models, we often get extremely verbose strings, such as:\r\n```\r\nCustomEntityUpdate(entity_registry_id=\u003cbenchling_api_client.types.Unset object at\r\n0x10453d2b0\u003e, author_ids=\u003cbenchling_api_client.types.Unset object at 0x10453d2b0\u003e, \r\naliases=\u003cbenchling_api_client.types.Unset object at 0x10453d2b0\u003e, custom_fields=\r\n\u003cbenchling_api_client.types.Unset object at 0x10453d2b0\u003e, \r\nfields=Fields(additional_properties={'Request 1': Field(value='test_plate', \r\ndisplay_value=\u003cbenchling_api_client.types.Unset object at 0x10453d2b0\u003e, is_multi=\r\n\u003cbenchling_api_client.types.Unset object at 0x10453d2b0\u003e, text_value=\r\n\u003cbenchling_api_client.types.Unset object at 0x10453d2b0\u003e, type=\r\n\u003cbenchling_api_client.types.Unset object at 0x10453d2b0\u003e), 'Request 2': \r\nField(value='test_plate', display_value=\u003cbenchling_api_client.types.Unset object at \r\n0x10453d2b0\u003e, is_multi=\u003cbenchling_api_client.types.Unset object at 0x10453d2b0\u003e, \r\ntext_value=\u003cbenchling_api_client.types.Unset object at 0x10453d2b0\u003e, type=\r\n\u003cbenchling_api_client.types.Unset object at 0x10453d2b0\u003e), 'Request 3': \r\nField(value='test_plate', display_value=\u003cbenchling_api_client.types.Unset object at \r\n0x10453d2b0\u003e, is_multi=\u003cbenchling_api_client.types.Unset object at 0x10453d2b0\u003e, \r\ntext_value=\u003cbenchling_api_client.types.Unset object at 0x10453d2b0\u003e, type=\r\n\u003cbenchling_api_client.types.Unset object at 0x10453d2b0\u003e)}), folder_id=\r\n\u003cbenchling_api_client.types.Unset object at 0x10453d2b0\u003e, name=\r\n\u003cbenchling_api_client.types.Unset object at 0x10453d2b0\u003e, schema_id=\r\n\u003cbenchling_api_client.types.Unset object at 0x10453d2b0\u003e)\r\n```\r\n\r\nThis makes debugging much more challenging.\r\n\r\n**Describe the solution you'd like**\r\nIdeally it would print\r\n```\r\nCustomEntityUpdate(fields=Fields(additional_properties={'Request 1': \r\nField(value='test_plate'), 'Request 2': Field(value='test_plate'), 'Request 3': \r\nField(value='test_plate')}))\r\n```\r\n\r\n**Describe alternatives you've considered**\r\nIt would also be an improvement if the repr of `UNSET` itself was shortened. I know @dbanty mentioned a PEP a while back that would allow us to make it a sentinel.\r\n\r\n**Additional context**\r\ncc @GitOnUp\r\n","author":{"url":"https://github.com/forest-benchling","@type":"Person","name":"forest-benchling"},"datePublished":"2021-08-02T14:45:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/463/openapi-python-client/issues/463"}
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:f55ae291-eb33-4d83-59af-1201c5494ff2 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id CB68:FC30:421A7B:53F3DE:697F70F4 html-safe-nonce de42b5ffdda63ccaf9485b1fa58c83539293683c99508481ccf75c98b953b355 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjY4OkZDMzA6NDIxQTdCOjUzRjNERTo2OTdGNzBGNCIsInZpc2l0b3JfaWQiOiI5MTQ0NzI0ODczODMzMDUwMzU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= visitor-hmac f962c2be735abf5f077cc9eb91fd966259e96b9613a7cf8f3506917fee260a43 hovercard-subject-tag issue:958220207 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/openapi-generators/openapi-python-client/463/issue_layout twitter:image https://opengraph.githubassets.com/af58d91c652a17c5f02f950814feffb50eea8abfbaee8223e84772149f38ce99/openapi-generators/openapi-python-client/issues/463 twitter:card summary_large_image og:image https://opengraph.githubassets.com/af58d91c652a17c5f02f950814feffb50eea8abfbaee8223e84772149f38ce99/openapi-generators/openapi-python-client/issues/463 og:image:alt Is your feature request related to a problem? Please describe. When printing out models, we often get extremely verbose strings, such as: CustomEntityUpdate(entity_registry_id= og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username forest-benchling hostname github.com expected-hostname github.com None 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 turbo-cache-control no-preview go-import github.com/openapi-generators/openapi-python-client git https://github.com/openapi-generators/openapi-python-client.git octolytics-dimension-user_id 84925606 octolytics-dimension-user_login openapi-generators octolytics-dimension-repository_id 240776275 octolytics-dimension-repository_nwo openapi-generators/openapi-python-client octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 240776275 octolytics-dimension-repository_network_root_nwo openapi-generators/openapi-python-client 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 7c85641c598ad130c74f7bcc27f58575cac69551 ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.