Title: `Pathlike` type hint is not respected · Issue #2085 · gitpython-developers/GitPython · GitHub
Open Graph Title: `Pathlike` type hint is not respected · Issue #2085 · gitpython-developers/GitPython
X Title: `Pathlike` type hint is not respected · Issue #2085 · gitpython-developers/GitPython
Description: According to os.pathlike, there is a Pathlike.__fspath__() method. However, there are many places in the repository where this is ignored and str() is used instead.
Open Graph Description: According to os.pathlike, there is a Pathlike.__fspath__() method. However, there are many places in the repository where this is ignored and str() is used instead.
X Description: According to os.pathlike, there is a Pathlike.__fspath__() method. However, there are many places in the repository where this is ignored and str() is used instead.
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/2085
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`Pathlike` type hint is not respected","articleBody":"According to [`os.pathlike`](https://docs.python.org/3/library/os.html#os.PathLike), there is a `Pathlike.__fspath__()` method. However, there are many places in the repository where this is ignored and `str()` is used instead.","author":{"url":"https://github.com/George-Ogden","@type":"Person","name":"George-Ogden"},"datePublished":"2025-11-27T19:02:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2085/GitPython/issues/2085"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:57a3201e-4e0a-aac2-637a-18cb66f4f07e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A1E:105DC6:53EC50:6FA916:69683755 |
| html-safe-nonce | 4d382b74bc4e022a0ed96e8285e94d102eff8881371b78d58124a25d54f26d82 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTFFOjEwNURDNjo1M0VDNTA6NkZBOTE2OjY5NjgzNzU1IiwidmlzaXRvcl9pZCI6IjQxOTQ2MzkyMDI0OTEwNTM5MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2853b8f0bf6e6f3087c56708266b502606a5b497d28fd763afc3f4993612eaf4 |
| hovercard-subject-tag | issue:3672743444 |
| 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/_view_fragments/issues/show/gitpython-developers/GitPython/2085/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5bc259015a948a33db87a92cc1b74aa3831613af15aea143bffd00db5bd110d3/gitpython-developers/GitPython/issues/2085 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5bc259015a948a33db87a92cc1b74aa3831613af15aea143bffd00db5bd110d3/gitpython-developers/GitPython/issues/2085 |
| og:image:alt | According to os.pathlike, there is a Pathlike.__fspath__() method. However, there are many places in the repository where this is ignored and str() is used instead. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | George-Ogden |
| hostname | github.com |
| expected-hostname | github.com |
| None | e25f416bb6d8a5f8624aad6cebc375ab2c50ac58f2175f32a7093325e66e5515 |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| 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 | 32212b8b3bddd6432b3b35d27c050b1c22bd8cca |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width