File tree Expand file tree Collapse file tree 4 files changed +14
-9
lines changed Expand file tree Collapse file tree 4 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 25
25
import os
26
26
import subprocess
27
27
import sys
28
- from typing import Dict , List
29
28
30
29
import alabaster
31
30
92
91
93
92
# List of patterns, relative to source directory, that match files and
94
93
# directories to ignore when looking for source files.
95
- exclude_patterns : List [str ] = []
94
+ exclude_patterns : list [str ] = []
96
95
97
96
# The reST default role (used for this markup: `text`) to use for all
98
97
# documents.
221
220
222
221
# -- Options for LaTeX output ---------------------------------------------
223
222
224
- latex_elements : Dict [str , tuple ] = {
223
+ latex_elements : dict [str , tuple [ str , ...] ] = {
225
224
# The paper size ('letterpaper' or 'a4paper')
226
225
# 'papersize': 'letterpaper',
227
226
# The font size ('10pt', '11pt' or '12pt').
Original file line number Diff line number Diff line change 1
1
[mypy]
2
2
files = .
3
- # XXX: goal is to turn it on
4
- strict = False
5
- check_untyped_defs = True
6
- show_error_codes = True
3
+ strict = true
4
+ warn_unused_ignores = true
5
+ show_error_codes = true
6
+ # XXX: goal is to enable this
7
+ disallow_untyped_defs = false
8
+ disallow_untyped_calls = false
9
+ check_untyped_defs = false
7
10
8
11
[mypy-salt.*]
9
12
ignore_missing_imports = True
Original file line number Diff line number Diff line change 10
10
# See the License for the specific language governing permissions and
11
11
# limitations under the License.
12
12
13
+ from typing import Any
14
+
13
15
from testinfra .modules .base import InstanceModule
14
16
15
17
@@ -23,7 +25,7 @@ def int_or_float(value):
23
25
return value
24
26
25
27
26
- class _Process (dict ):
28
+ class _Process (dict [ str , Any ] ):
27
29
def __getattr__ (self , key ):
28
30
try :
29
31
return self .__getitem__ (key )
Original file line number Diff line number Diff line change 15
15
import sys
16
16
import tempfile
17
17
import time
18
+ from typing import AnyStr
18
19
19
20
import pytest
20
21
@@ -173,7 +174,7 @@ def report(self):
173
174
return ret
174
175
175
176
176
- class SpooledTemporaryFile (tempfile .SpooledTemporaryFile ):
177
+ class SpooledTemporaryFile (tempfile .SpooledTemporaryFile [ AnyStr ] ):
177
178
def __init__ (self , * args , ** kwargs ):
178
179
if "b" in kwargs .get ("mode" , "b" ):
179
180
self ._out_encoding = kwargs .pop ("encoding" )
You can’t perform that action at this time.
0 commit comments