Title: fix: Update __exit__ method to use Optional types by AustinZhang1024 · Pull Request #733 · python-escpos/python-escpos · GitHub
Open Graph Title: fix: Update __exit__ method to use Optional types by AustinZhang1024 · Pull Request #733 · python-escpos/python-escpos
X Title: fix: Update __exit__ method to use Optional types by AustinZhang1024 · Pull Request #733 · python-escpos/python-escpos
Description: Description From the newest document, better to allow None in the type hint. This will fix the invalid-context-manager error of ty. If the context was exited without an exception, all three arguments will be None. Tested with Windows 11
Open Graph Description: Description From the newest document, better to allow None in the type hint. This will fix the invalid-context-manager error of ty. If the context was exited without an exception, all three argume...
X Description: Description From the newest document, better to allow None in the type hint. This will fix the invalid-context-manager error of ty. If the context was exited without an exception, all three argume...
Opengraph URL: https://github.com/python-escpos/python-escpos/pull/733
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:47e464b6-362b-c283-ef28-ed586e030f48 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8D02:B4FD6:200A81:2CE160:6A4D17B7 |
| html-safe-nonce | 834d87d2fdf3ddecc6fa8ade5da70feae429f091054323f34ee30209783b0d04 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDAyOkI0RkQ2OjIwMEE4MToyQ0UxNjA6NkE0RDE3QjciLCJ2aXNpdG9yX2lkIjoiMTA5MjgyNjAwMTg2MjEwNTAxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9406c55f9f0010df96f2d1d00d2cca8ec06cdc0aba99dc23de30f99dc38b21f4 |
| hovercard-subject-tag | pull_request:3698588983 |
| 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-escpos/python-escpos/pull/733/files |
| twitter:image | https://avatars.githubusercontent.com/u/25601078?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/25601078?s=400&v=4 |
| og:image:alt | Description From the newest document, better to allow None in the type hint. This will fix the invalid-context-manager error of ty. If the context was exited without an exception, all three argume... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | bcb4661e6fb4fe8b394c51ea02ccdb2236d40dc59afc75a3bbba50bf6517134c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python-escpos/python-escpos git https://github.com/python-escpos/python-escpos.git |
| octolytics-dimension-user_id | 16302939 |
| octolytics-dimension-user_login | python-escpos |
| octolytics-dimension-repository_id | 32363483 |
| octolytics-dimension-repository_nwo | python-escpos/python-escpos |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 32363483 |
| octolytics-dimension-repository_network_root_nwo | python-escpos/python-escpos |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fb70bd3c4b2bec429781b65419e912c66e2d5581 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width