Skip to content

Repository.__init__ (possibly others) missing os.PathLike typing #1307

Open
@warriorstar-orion

Description

@warriorstar-orion

Support for PathLikes was added in #990. However, it doesn't appear the typing for some of the affected methods were updated. Repository.__init__ was the one I caught, but there may be more (which is why this isn't just a PR, I didn't want to make this one change and end up missing others).

pygit2/pygit2/repository.py

Lines 1523 to 1528 in 5b27dee

class Repository(BaseRepository):
def __init__(
self,
path: typing.Optional[str] = None,
flags: RepositoryOpenFlag = RepositoryOpenFlag.DEFAULT,
):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions