File tree 4 files changed +11
-3
lines changed
4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 52
52
- Mel Hall (Met Office, UK)
53
53
- Ronnie Dutta (Met Office, UK)
54
54
- Roddy Sharp (Met Office UK)
55
+ - Mark Dawson (Met Office UK)
55
56
<!-- end-shortlog -->
56
57
57
58
(All contributors are identifiable with email addresses in the version control
Original file line number Diff line number Diff line change 15
15
# along with Rose. If not, see <http://www.gnu.org/licenses/>.
16
16
17
17
import json
18
- from pathlib import Path
19
- from typing import Optional
18
+ from typing import TYPE_CHECKING , Optional
20
19
import pytest
21
20
22
21
from metomi .rosie .suite_id import SuiteId
23
22
23
+ if TYPE_CHECKING :
24
+ from pathlib import Path
25
+
24
26
25
27
@pytest .mark .parametrize (
26
28
'vcs_info, expected' ,
42
44
]
43
45
)
44
46
def test_parse_cylc_vc_file (
45
- vcs_info : dict , expected : Optional [str ], tmp_path : Path
47
+ vcs_info : dict , expected : Optional [str ], tmp_path : ' Path'
46
48
):
47
49
vcs_file = tmp_path / 'gimli.json'
48
50
vcs_file .write_text (json .dumps (vcs_info ))
Original file line number Diff line number Diff line change @@ -13,3 +13,7 @@ allow_redefinition = True
13
13
14
14
strict_equality = True
15
15
show_error_codes = True
16
+
17
+ # Suppress the following messages:
18
+ # By default the bodies of untyped functions are not checked, consider using --check-untyped-defs
19
+ disable_error_code = annotation-unchecked
Original file line number Diff line number Diff line change 81
81
tests =
82
82
aiosmtpd
83
83
flake8>=4.0.0
84
+ flake8-type-checking; python_version > "3.7"
84
85
mypy>=0.800
85
86
pytest
86
87
types-aiofiles
You can’t perform that action at this time.
0 commit comments