Skip to content

Commit 240fbb0

Browse files
committed
chore: Refine imports to use t namespace
1 parent bbf0028 commit 240fbb0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

scripts/generate_gitlab.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
import os
99
import pathlib
1010
import sys
11-
from typing import TYPE_CHECKING
11+
import typing as t
1212

1313
import requests
1414
import yaml
1515
from libvcs.sync.git import GitRemote
1616

1717
from vcspull.cli.sync import CouldNotGuessVCSFromURL, guess_vcs
1818

19-
if TYPE_CHECKING:
19+
if t.TYPE_CHECKING:
2020
from vcspull.types import RawConfig
2121

2222
log = logging.getLogger(__name__)

tests/test_repo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import TYPE_CHECKING
5+
import typing as t
66

77
from libvcs import BaseSync, GitSync, HgSync, SvnSync
88
from libvcs._internal.shortcuts import create_project
@@ -11,7 +11,7 @@
1111

1212
from .fixtures import example as fixtures
1313

14-
if TYPE_CHECKING:
14+
if t.TYPE_CHECKING:
1515
import pathlib
1616

1717

tests/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
from __future__ import annotations
44

5-
from typing import TYPE_CHECKING
5+
import typing as t
66

77
from vcspull.util import get_config_dir
88

9-
if TYPE_CHECKING:
9+
if t.TYPE_CHECKING:
1010
import pathlib
1111

1212
import pytest

0 commit comments

Comments
 (0)