File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 4
4
import argparse
5
5
import json
6
6
import platform
7
+ from pathlib import Path
7
8
from typing import TYPE_CHECKING , Final
8
9
9
10
import pytest
29
30
)
30
31
31
32
if TYPE_CHECKING :
32
- from pathlib import Path
33
-
34
33
from watchdog .observers .api import BaseObserver
35
34
36
- if platform .system () == "Windows" :
37
- from pathlib import Path # actually import Path when on Windows
38
-
39
- DRIVE : Final [str ] = Path ().resolve ().drive
35
+ DRIVE : Final [str ] = Path ().resolve ().drive
40
36
41
37
42
38
@pytest .mark .skipif (
Original file line number Diff line number Diff line change 9
9
10
10
from auto_file_sorter .utils import resolved_path_from_str
11
11
12
- if platform .system () == "Windows" :
13
- DRIVE : Final [str ] = Path ().resolve ().drive
12
+ DRIVE : Final [str ] = Path ().resolve ().drive
14
13
15
14
# pylint: disable=C0116
16
15
You can’t perform that action at this time.
0 commit comments