File tree Expand file tree Collapse file tree 6 files changed +12
-28
lines changed
Expand file tree Collapse file tree 6 files changed +12
-28
lines changed Original file line number Diff line number Diff line change 33from __future__ import annotations
44
55import copy
6+ import argparse
67import logging
78import pathlib
89import subprocess
2324 workspace_root_label ,
2425)
2526
26- if t .TYPE_CHECKING :
27- import argparse
28-
2927log = logging .getLogger (__name__ )
3028
3129
Original file line number Diff line number Diff line change 33from __future__ import annotations
44
55import logging
6+ import argparse
67import os
78import pathlib
89import subprocess
2324 workspace_root_label ,
2425)
2526
26- if t .TYPE_CHECKING :
27- import argparse
28-
2927log = logging .getLogger (__name__ )
3028
3129ConfigScope = t .Literal ["system" , "user" , "project" , "external" ]
Original file line number Diff line number Diff line change 33from __future__ import annotations
44
55import copy
6+ import argparse
67import logging
78import pathlib
89import traceback
2021 save_config_yaml ,
2122)
2223
23- if t .TYPE_CHECKING :
24- import argparse
25-
2624log = logging .getLogger (__name__ )
2725
2826
Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5+ import argparse
56import logging
7+ import pathlib
68import typing as t
79
810from vcspull ._internal .private_path import PrivatePath
911from vcspull .config import filter_repos , find_config_files , load_configs
12+ from vcspull .types import ConfigDict
1013
1114from ._colors import Colors , get_color_mode
1215from ._output import OutputFormatter , get_output_mode
1316from ._workspaces import filter_by_workspace
1417
15- if t .TYPE_CHECKING :
16- import argparse
17- import pathlib
18-
19- from vcspull .types import ConfigDict
20-
2118log = logging .getLogger (__name__ )
2219
2320
Original file line number Diff line number Diff line change 33from __future__ import annotations
44
55import asyncio
6+ import argparse
67import logging
78import os
89import pathlib
1516
1617from vcspull ._internal .private_path import PrivatePath
1718from vcspull .config import filter_repos , find_config_files , load_configs
19+ from vcspull .types import ConfigDict
1820
1921from ._colors import Colors , get_color_mode
2022from ._output import OutputFormatter , get_output_mode
2123from ._workspaces import filter_by_workspace
2224
23- if t .TYPE_CHECKING :
24- import argparse
25-
26- from vcspull .types import ConfigDict
27-
2825log = logging .getLogger (__name__ )
2926
3027DEFAULT_STATUS_CONCURRENCY = max (1 , min (32 , (os .cpu_count () or 4 ) * 2 ))
Original file line number Diff line number Diff line change 33from __future__ import annotations
44
55import asyncio
6+ import argparse
67import contextlib
78import json
89import logging
2021from time import perf_counter
2122
2223from libvcs ._internal .shortcuts import create_project
24+ from libvcs ._internal .types import VCSLiteral
25+ from libvcs .sync .git import GitSync
2326from libvcs .url import registry as url_tools
2427
2528from vcspull import exc
2629from vcspull ._internal .private_path import PrivatePath
2730from vcspull .config import filter_repos , find_config_files , load_configs
31+ from vcspull .types import ConfigDict
2832
2933from ._colors import Colors , get_color_mode
3034from ._output import (
4044from ._workspaces import filter_by_workspace
4145from .status import check_repo_status
4246
43- if t .TYPE_CHECKING :
44- import argparse
45-
46- from libvcs ._internal .types import VCSLiteral
47- from libvcs .sync .git import GitSync
48-
49- from vcspull .types import ConfigDict
50-
5147log = logging .getLogger (__name__ )
5248
5349ProgressCallback = Callable [[str , datetime ], None ]
You can’t perform that action at this time.
0 commit comments