Skip to content

Commit 876b755

Browse files
committed
add types to test/test_remote_utf8.py
1 parent cf67fab commit 876b755

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/test_remote_utf8.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
# the Free Software Foundation, 51 Franklin Street, Fifth Floor,
2424
# Boston, MA 02110-1301, USA.
2525

26+
from pathlib import Path
27+
from typing import Generator
28+
2629
import pytest
2730

2831
import pygit2
@@ -31,11 +34,11 @@
3134

3235

3336
@pytest.fixture
34-
def repo(tmp_path):
37+
def repo(tmp_path: Path) -> Generator[pygit2.Repository, None, None]:
3538
with utils.TemporaryRepository('utf8branchrepo.zip', tmp_path) as path:
3639
yield pygit2.Repository(path)
3740

3841

39-
def test_fetch(repo):
42+
def test_fetch(repo: pygit2.Repository) -> None:
4043
remote = repo.remotes.create('origin', repo.workdir)
4144
remote.fetch()

0 commit comments

Comments
 (0)