File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 55import tarfile
66import tempfile
77from io import BytesIO
8- from pathlib import Path
8+ from typing import TYPE_CHECKING
99
1010import pytest
1111
1515from fsspec .implementations .tar import TarFileSystem
1616from fsspec .implementations .tests .test_archive import archive_data , temptar
1717
18+ if TYPE_CHECKING :
19+ from pathlib import Path
20+
1821
1922def test_info ():
2023 with temptar (archive_data ) as t :
Original file line number Diff line number Diff line change 44import logging
55import math
66import os
7- import pathlib
87import re
98import sys
109import tempfile
2423from urllib .parse import urlsplit
2524
2625if TYPE_CHECKING :
26+ import pathlib
27+
2728 from typing_extensions import TypeGuard
2829
2930 from fsspec .spec import AbstractFileSystem
Original file line number Diff line number Diff line change @@ -185,6 +185,7 @@ select = [
185185 " SIM" ,
186186 " SLOT" ,
187187 " SIM101" ,
188+ " TCH" ,
188189 " UP" ,
189190]
190191ignore = [
You can’t perform that action at this time.
0 commit comments