-
With sample code like from git.repo import Repo
repo = Repo(root_of_my_repo)
print(f'repo working dir: {repo.working_tree_dir}')
print(f'is repo dirty ?: {repo.is_dirty()}') I see VS Code / pylance / pyright messages like these (shortened for better readability):
both of which seem to be caused by the type of However, Line 46 in 1c8310d Also, in general, I see from #1095 that full type support has been added to GitPython two years ago - and some detail of this very AFAICT, I use the latest versions for anything involved:
Why am I still seeing these pyright issues ? Really puzzled here and would be really grateful for any advice. Thank you very much. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Since your setup works fine for 10+ similar projects, I'd assume that those simply are better maintained. As a matter of fact, I have no development setup for Python at all and cannot run any tests locally anymore. After the typing extensions were contributed, they are essentially unmaintained, but receive some improvements from time to time from folks who experience issues with them. Thus you are welcome to fix it for your setup and submit a PR - I have no idea how that should work though. |
Beta Was this translation helpful? Give feedback.
Since your setup works fine for 10+ similar projects, I'd assume that those simply are better maintained. As a matter of fact, I have no development setup for Python at all and cannot run any tests locally anymore.
As for contributors, I don't know how they do it but would assume they have similar issues that they ignore.
After the typing extensions were contributed, they are essentially unmaintained, but receive some improvements from time to time from folks who experience issues with them.
Thus you are welcome to fix it for your setup and submit a PR - I have no idea how that should work though.