Title: Enable `reportUnreachable` in basedpyright by Copilot · Pull Request #1376 · usethis-python/usethis-python · GitHub
Open Graph Title: Enable `reportUnreachable` in basedpyright by Copilot · Pull Request #1376 · usethis-python/usethis-python
X Title: Enable `reportUnreachable` in basedpyright by Copilot · Pull Request #1376 · usethis-python/usethis-python
Description: Remove reportUnreachable = false from global [tool.basedpyright] config
Add [[tool.basedpyright.executionEnvironments]] for tests/ keeping it disabled there
Remove unreachable isinstance checks in _validated_set and _validated_append in src/usethis/_file/ini/io_.py
Remove stale test_int test whose expectation (TypeError on int input) depended on the removed isinstance guard
All 74 ini tests pass; prek and basedpyright report 0 errors
Original prompt
This section details on the original issue you should resolve
Open Graph Description: Remove reportUnreachable = false from global [tool.basedpyright] config Add [[tool.basedpyright.executionEnvironments]] for tests/ keeping it disabled there Remove unreachable isinstance checks i...
X Description: Remove reportUnreachable = false from global [tool.basedpyright] config Add [[tool.basedpyright.executionEnvironments]] for tests/ keeping it disabled there Remove unreachable isinstance checks i...
Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1376
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d369fb16-8f7a-b893-7663-a29152251d9a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D82A:2DC8D1:8B18C4:BC45BF:6A4EC8C0 |
| html-safe-nonce | 01781c99ba3eb6add70b5d03c7f38afc4ad51cd2baf365f2e39452e0ced19cb8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODJBOjJEQzhEMTo4QjE4QzQ6QkM0NUJGOjZBNEVDOEMwIiwidmlzaXRvcl9pZCI6IjY5OTAxNzY4NDUzMzAzNzI0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e8c2c289bc3905a97f165eecebe579257f6492d5bffa22e031388ce8ba7b2d2c |
| hovercard-subject-tag | pull_request:3381869309 |
| 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/1376/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 | Remove reportUnreachable = false from global [tool.basedpyright] config Add [[tool.basedpyright.executionEnvironments]] for tests/ keeping it disabled there Remove unreachable isinstance checks i... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| 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 | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width