Skip to content

Commit e7bd6d2

Browse files
committed
docs(repository): fix default_signature typos
Repository.default_signature is a read-only descriptor, not a getter method. Signed-off-by: Ethan Meng <ethan@rapidcow.org>
1 parent 379b4d8 commit e7bd6d2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pygit2/repository.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@ def stash(
12781278
Example::
12791279
12801280
>>> repo = pygit2.Repository('.')
1281-
>>> repo.stash(repo.default_signature(), 'WIP: stashing')
1281+
>>> repo.stash(repo.default_signature, 'WIP: stashing')
12821282
"""
12831283

12841284
opts = ffi.new('git_stash_save_options *')
@@ -1347,7 +1347,7 @@ def stash_apply(
13471347
Example::
13481348
13491349
>>> repo = pygit2.Repository('.')
1350-
>>> repo.stash(repo.default_signature(), 'WIP: stashing')
1350+
>>> repo.stash(repo.default_signature, 'WIP: stashing')
13511351
>>> repo.stash_apply(strategy=CheckoutStrategy.ALLOW_CONFLICTS)
13521352
"""
13531353
with git_stash_apply_options(

0 commit comments

Comments
 (0)