Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type stub file is mistaken about GIT_OBJ_COMMIT #1333

Open
indigoviolet opened this issue Dec 22, 2024 · 1 comment
Open

Type stub file is mistaken about GIT_OBJ_COMMIT #1333

indigoviolet opened this issue Dec 22, 2024 · 1 comment

Comments

@indigoviolet
Copy link

GIT_OBJ_COMMIT: Literal[1]

from ._pygit2 import *

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'
@DinhHuy2010
Copy link

Fixing the stub at #1332

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants