pygit2
pygit2 copied to clipboard
Type stub file is mistaken about GIT_OBJ_COMMIT
https://github.com/libgit2/pygit2/blob/8f3dec8737b23fea23bc45dbad6cfa2a96908d7a/pygit2/_pygit2.pyi#L24
https://github.com/libgit2/pygit2/blob/8f3dec8737b23fea23bc45dbad6cfa2a96908d7a/pygit2/init.py#L32
In [1]: import pygit2
In [2]: pygit2.GIT_OBJ_COMMIT
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[2], line 1
----> 1 pygit2.GIT_OBJ_COMMIT
AttributeError: module 'pygit2' has no attribute 'GIT_OBJ_COMMIT'
In [3]: pygit2.GIT_OBJECT_COMMIT
Out[3]: 1
In [4]: pygit2.__version__
Out[4]: '1.16.0'
Fixing the stub at #1332