Title: agent: document @functools.cache pattern for IO-intensive private helpers in skills by Copilot · Pull Request #1815 · usethis-python/usethis-python · GitHub
Open Graph Title: agent: document @functools.cache pattern for IO-intensive private helpers in skills by Copilot · Pull Request #1815 · usethis-python/usethis-python
X Title: agent: document @functools.cache pattern for IO-intensive private helpers in skills by Copilot · Pull Request #1815 · usethis-python/usethis-python
Description: Agent guidelines lacked explicit instruction to apply @functools.cache to IO-intensive private helpers or to register their .cache_clear() in the conftest fixture — leaving both steps to tribal knowledge. Changes usethis-python-code skill (v1.6 → v1.7): New "Caching IO-intensive private helpers" section — when to apply @functools.cache (read-only, called multiple times per invocation), the three-step procedure, and common mistakes (caching side-effectful functions, omitting conftest registration). usethis-python-test skill (v1.1 → v1.2): New "Clearing functools caches between tests" section — two-step procedure for importing and registering .cache_clear() in clear_functools_caches, with explanation of why omitting it causes silent test pollution.
Open Graph Description: Agent guidelines lacked explicit instruction to apply @functools.cache to IO-intensive private helpers or to register their .cache_clear() in the conftest fixture — leaving both steps to tribal kno...
X Description: Agent guidelines lacked explicit instruction to apply @functools.cache to IO-intensive private helpers or to register their .cache_clear() in the conftest fixture — leaving both steps to tribal kno...
Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1815
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4c548b7a-634c-e38a-7329-3cf324b1d289 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A45E:2C07F4:44FDE8:5F130D:6A4DC7D7 |
| html-safe-nonce | 21535b71e4764859bf2554e88f7fb2360834a07d4266ef52a4c14186f5e50b1f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDVFOjJDMDdGNDo0NEZERTg6NUYxMzBEOjZBNERDN0Q3IiwidmlzaXRvcl9pZCI6IjgzNTI2MzExODY3NTM3MDE4NDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f3483ee02efaecbfcb377bf1b1cc43ea6bdfb6d29cd7c8bcdd266eaf6cf0a39e |
| hovercard-subject-tag | pull_request:3488707070 |
| 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/usethis-python/usethis-python/pull/1815/files |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | Agent guidelines lacked explicit instruction to apply @functools.cache to IO-intensive private helpers or to register their .cache_clear() in the conftest fixture — leaving both steps to tribal kno... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git |
| octolytics-dimension-user_id | 216362695 |
| octolytics-dimension-user_login | usethis-python |
| octolytics-dimension-repository_id | 842189705 |
| octolytics-dimension-repository_nwo | usethis-python/usethis-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 842189705 |
| octolytics-dimension-repository_network_root_nwo | usethis-python/usethis-python |
| 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 | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width