Skip to content

Type stub file is mistaken about GIT_OBJ_COMMIT #1333

@indigoviolet

Description

@indigoviolet

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions