pygit2 icon indicating copy to clipboard operation
pygit2 copied to clipboard

Type stub file is mistaken about GIT_OBJ_COMMIT

Open indigoviolet opened this issue 1 year ago • 1 comments

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'

indigoviolet avatar Dec 22 '24 05:12 indigoviolet

Fixing the stub at #1332

DinhHuy2010 avatar Dec 22 '24 11:12 DinhHuy2010