File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,10 @@ repos:
103103 name : Check type annotations in python files
104104 entry : tools/ci/check_type_comments.py
105105 additional_dependencies :
106- - ' mypy==0.940 '
107- - ' mypy-extensions==0.4.3 '
108- - ' types-setuptools==57.4.14 '
109- - ' types-PyYAML==0.1.9 '
106+ - ' mypy'
107+ - ' mypy-extensions'
108+ - ' types-setuptools'
109+ - ' types-PyYAML'
110110 - ' types-requests'
111111 exclude : >
112112 (?x)^(
Original file line number Diff line number Diff line change 22#
33# SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
44# SPDX-License-Identifier: Apache-2.0
5-
65import argparse
76import subprocess
87from sys import exit
@@ -30,7 +29,7 @@ def types_valid_ignored_rules(file_name): # type: (str) -> bool
3029 """
3130 Run Mypy check with rules for ignore list on the given file, return TRUE if Mypy check passes
3231 """
33- mypy_exit_code = subprocess .call ('mypy {} --allow-untyped-defs' .format (file_name ), shell = True )
32+ mypy_exit_code = subprocess .call ('mypy {} --python-version 3.8 -- allow-untyped-defs' .format (file_name ), shell = True )
3433 return not bool (mypy_exit_code )
3534
3635
You can’t perform that action at this time.
0 commit comments