Commit 379b4d8
committed
fix(repository): amend annotations on reflog identity
Since set_ident() already has type annotations, it
seems fitting that we adorn ident() with those too. :)
Also, to_bytes() is perfectly capable of mapping None
to ffi.NULL, so the parameters on set_ident() should be
`str | None` (aka Optional[str]).
Signed-off-by: Ethan Meng <ethan@rapidcow.org>1 parent d32573e commit 379b4d8
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1578 | 1578 | | |
1579 | 1579 | | |
1580 | 1580 | | |
1581 | | - | |
| 1581 | + | |
1582 | 1582 | | |
1583 | 1583 | | |
1584 | 1584 | | |
| |||
1587 | 1587 | | |
1588 | 1588 | | |
1589 | 1589 | | |
1590 | | - | |
| 1590 | + | |
1591 | 1591 | | |
1592 | 1592 | | |
1593 | 1593 | | |
| |||
0 commit comments