Title: Add return type annotation for Construct.sizeof by laomaiweng · Pull Request #1117 · construct/construct · GitHub
Open Graph Title: Add return type annotation for Construct.sizeof by laomaiweng · Pull Request #1117 · construct/construct
X Title: Add return type annotation for Construct.sizeof by laomaiweng · Pull Request #1117 · construct/construct
Description: The default implementation of Construct.sizeof unconditionally raises a SizeofError, because it is meant to be overridden in subclasses. This confuses some type checkers (e.g., pyright) which incor...
Open Graph Description: The default implementation of Construct.sizeof unconditionally raises a SizeofError, because it is meant to be overridden in subclasses. This confuses some type checkers (e.g., pyright) which incor...
X Description: The default implementation of Construct.sizeof unconditionally raises a SizeofError, because it is meant to be overridden in subclasses. This confuses some type checkers (e.g., pyright) which incor...
Opengraph URL: https://github.com/construct/construct/pull/1117
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:d77cd565-9380-ef01-0ec8-1d80135b6805 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 87D6:1587BA:6EDD171:916429C:696DB395 |
| html-safe-nonce | 8dec5ea14c76499fe1586e9de324ce47cdbeaf648ef6713dad994eb5cc8859b2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0Q2OjE1ODdCQTo2RUREMTcxOjkxNjQyOUM6Njk2REIzOTUiLCJ2aXNpdG9yX2lkIjoiOTEyMDI0OTI0MjQ4NjQyMDM3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d3c4b03063d420db702ca62d1c4fa57a70d8257ca9cf1071206bfb6a087ff45d |
| hovercard-subject-tag | pull_request:2702168031 |
| 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/_view_fragments/voltron/pull_requests/show/construct/construct/1117/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/f40c273bbe7bb60f103f62ada21cadc58157b953c34f772ca4c1cbc1fa08e3a7/construct/construct/pull/1117 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f40c273bbe7bb60f103f62ada21cadc58157b953c34f772ca4c1cbc1fa08e3a7/construct/construct/pull/1117 |
| og:image:alt | The default implementation of Construct.sizeof unconditionally raises a SizeofError, because it is meant to be overridden in subclasses. This confuses some type checkers (e.g., pyright) which incor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | laomaiweng |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4922b452d03cd8dbce479d866a11bc25b59ef6ee2da23aa9b0ddefa6bd4d0064 |
| turbo-cache-control | no-preview |
| go-import | github.com/construct/construct git https://github.com/construct/construct.git |
| octolytics-dimension-user_id | 1703836 |
| octolytics-dimension-user_login | construct |
| octolytics-dimension-repository_id | 4218694 |
| octolytics-dimension-repository_nwo | construct/construct |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 1196772 |
| octolytics-dimension-repository_parent_nwo | MostAwesomeDude/construct |
| octolytics-dimension-repository_network_root_id | 1196772 |
| octolytics-dimension-repository_network_root_nwo | MostAwesomeDude/construct |
| 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 | 7e5ae23c70136152637ceee8d6faceb35596ec46 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width