Title: bpo-38870: don't put unnecessary parantheses on class declarations by isidentical · Pull Request #20134 · python/cpython · GitHub
Open Graph Title: bpo-38870: don't put unnecessary parantheses on class declarations by isidentical · Pull Request #20134 · python/cpython
X Title: bpo-38870: don't put unnecessary parantheses on class declarations by isidentical · Pull Request #20134 · python/cpython
Description: current: >>> ast.unparse(ast.parse("class Type: pass")) 'class Type():\n pass' after this PR: >>> ast.unparse(ast.parse("class Type: pass")) 'class Type:\n pass' >>> ast.unparse(ast.parse("class Type(BaseType): pass")) 'class Type(BaseType):\n pass' https://bugs.python.org/issue38870
Open Graph Description: current: >>> ast.unparse(ast.parse("class Type: pass")) 'class Type():\n pass' after this PR: >>> ast.unparse(ast.parse("class Type: pass")) 'cl...
X Description: current: >>> ast.unparse(ast.parse("class Type: pass")) 'class Type():\n pass' after this PR: >>> ast.unparse(ast.pars...
Opengraph URL: https://github.com/python/cpython/pull/20134
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:73caaae9-fc3c-b6c2-ad25-2c0b1874f49f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DF2E:228CBB:20F381:2E8C89:696A05BC |
| html-safe-nonce | bb95c7d6000a3ac4661f2241778e240993338d382f65373f09a4461fcfaf775d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjJFOjIyOENCQjoyMEYzODE6MkU4Qzg5OjY5NkEwNUJDIiwidmlzaXRvcl9pZCI6IjkwMzE0MTcxNTU0NTc1MTY5ODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 26047bcbab4a839632f2729704b5db7a63e5e876dfab55868dd561e26f404a43 |
| hovercard-subject-tag | pull_request:419021312 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/python/cpython/pull/20134/files |
| twitter:image | https://avatars.githubusercontent.com/u/47358913?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/47358913?s=400&v=4 |
| og:image:alt | current: >>> ast.unparse(ast.parse("class Type: pass")) 'class Type():\n pass' after this PR: >>> ast.unparse(ast.parse("class Type: pass")) 'cl... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 578c119ff0247c8b2f2491fbf4fc0395cdf909d4df66598cebdc96ddfc4418dc |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 671c2f67171dbced24284331f3133a613d08c366 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width