Skip to content

Commit 02f4b13

Browse files
committed
test(sync[git]): Change typing import style
1 parent 13899c2 commit 02f4b13

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/sync/test_git.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import random
66
import shutil
77
import textwrap
8-
from typing import Callable, TypedDict
8+
import typing as t
99

1010
import pytest
1111

@@ -26,9 +26,9 @@
2626
pytestmark = pytest.mark.skip(reason="git is not available")
2727

2828

29-
ProjectTestFactory = Callable[..., GitSync]
30-
ProjectTestFactoryLazyKwargs = Callable[..., dict]
31-
ProjectTestFactoryRemoteLazyExpected = Callable[..., dict[str, GitRemote]]
29+
ProjectTestFactory = t.Callable[..., GitSync]
30+
ProjectTestFactoryLazyKwargs = t.Callable[..., dict]
31+
ProjectTestFactoryRemoteLazyExpected = t.Callable[..., dict[str, GitRemote]]
3232

3333

3434
@pytest.mark.parametrize(
@@ -769,7 +769,7 @@ def test_GitRemote_from_stdout() -> None:
769769
) == GitStatus.from_stdout(FIXTURE_A)
770770

771771

772-
class GitBranchComplexResult(TypedDict):
772+
class GitBranchComplexResult(t.TypedDict):
773773
branch_oid: str
774774
branch_head: str
775775
branch_upstream: str
@@ -829,7 +829,7 @@ def test_GitRemote__from_stdout_b(fixture: str, expected_result: GitStatus) -> N
829829
assert GitStatus.from_stdout(textwrap.dedent(fixture)) == expected_result
830830

831831

832-
class GitBranchResult(TypedDict):
832+
class GitBranchResult(t.TypedDict):
833833
branch_ab: str
834834
branch_ahead: str
835835
branch_behind: str

0 commit comments

Comments
 (0)