Title: GitHub · Where software is built
Open Graph Title: fluentpython/example-code-2e
X Title: fluentpython/example-code-2e
Description: Example code for Fluent Python, 2nd edition (O'Reilly 2022) - fluentpython/example-code-2e
Open Graph Description: Example code for Fluent Python, 2nd edition (O'Reilly 2022) - fluentpython/example-code-2e
X Description: Example code for Fluent Python, 2nd edition (O'Reilly 2022) - fluentpython/example-code-2e
Opengraph URL: https://github.com/fluentpython/example-code-2e
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Typing for metaclass examples","articleBody":"Consider the example in 24-class-metaprog/factories.py (corresponds to example 24-2, page 912 in my copy)\r\n\r\n```\r\nDog = record_factory('Dog', 'name weight owner') \r\nrex = Dog('Rex', 30, 'Bob')\r\n```\r\nWe do not get static type checking on, e.g., `rex.name`\r\n\r\nIs there an easy fix, or is this because types in metaclasses / metaprogramming are hard? ","author":{"url":"https://github.com/jsrozner","@type":"Person","name":"jsrozner"},"datePublished":"2024-04-05T22:16:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/42/example-code-2e/issues/42"}
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:b346094f-8c34-cbe6-6cea-657561fa3486 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA30:1B2E35:1E7D3:29CAA:6971FB11 |
| html-safe-nonce | 171a9ffc1bf825e2f5e450d97deeef7104be0c036d75f5e4ac46e7fce2971e86 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTMwOjFCMkUzNToxRTdEMzoyOUNBQTo2OTcxRkIxMSIsInZpc2l0b3JfaWQiOiI3NzUxMjk0ODE3MDgxMDk2OTc3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5d0925bacc2c25de94955692cd717933f1c08b9d290e7ac1e47d43e74d79f468 |
| hovercard-subject-tag | repository:176997413 |
| 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/fluentpython/example-code-2e/issues/42 |
| twitter:image | https://opengraph.githubassets.com/ddd938930cb7518969eba7025ec35b3f38e52ed4bfdcc0a294f71452b7e7fdc4/fluentpython/example-code-2e |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ddd938930cb7518969eba7025ec35b3f38e52ed4bfdcc0a294f71452b7e7fdc4/fluentpython/example-code-2e |
| og:image:alt | Example code for Fluent Python, 2nd edition (O'Reilly 2022) - fluentpython/example-code-2e |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5d01a3551afdd1a0e12e78acaf3ba43a9a1f7dcb518695d6ed59db76a9290f13 |
| turbo-cache-control | no-cache |
| go-import | github.com/fluentpython/example-code-2e git https://github.com/fluentpython/example-code-2e.git |
| octolytics-dimension-user_id | 9216311 |
| octolytics-dimension-user_login | fluentpython |
| octolytics-dimension-repository_id | 176997413 |
| octolytics-dimension-repository_nwo | fluentpython/example-code-2e |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 176997413 |
| octolytics-dimension-repository_network_root_nwo | fluentpython/example-code-2e |
| 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 | 062b05dcdf64ee7a3dad7acabb746494ae0982cc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width