File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525import os
2626import subprocess
2727import sys
28- from typing import Dict , List
2928
3029import alabaster
3130
9291
9392# List of patterns, relative to source directory, that match files and
9493# directories to ignore when looking for source files.
95- exclude_patterns : List [str ] = []
94+ exclude_patterns : list [str ] = []
9695
9796# The reST default role (used for this markup: `text`) to use for all
9897# documents.
221220
222221# -- Options for LaTeX output ---------------------------------------------
223222
224- latex_elements : Dict [str , tuple ] = {
223+ latex_elements : dict [str , tuple [ str , ...] ] = {
225224 # The paper size ('letterpaper' or 'a4paper')
226225 # 'papersize': 'letterpaper',
227226 # The font size ('10pt', '11pt' or '12pt').
Original file line number Diff line number Diff line change 11[mypy]
22files = .
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
710
811[mypy-salt.*]
912ignore_missing_imports = True
Original file line number Diff line number Diff line change 1010# See the License for the specific language governing permissions and
1111# limitations under the License.
1212
13+ from typing import Any
14+
1315from testinfra .modules .base import InstanceModule
1416
1517
@@ -23,7 +25,7 @@ def int_or_float(value):
2325 return value
2426
2527
26- class _Process (dict ):
28+ class _Process (dict [ str , Any ] ):
2729 def __getattr__ (self , key ):
2830 try :
2931 return self .__getitem__ (key )
Original file line number Diff line number Diff line change 1515import sys
1616import tempfile
1717import time
18+ from typing import AnyStr
1819
1920import pytest
2021
@@ -173,7 +174,7 @@ def report(self):
173174 return ret
174175
175176
176- class SpooledTemporaryFile (tempfile .SpooledTemporaryFile ):
177+ class SpooledTemporaryFile (tempfile .SpooledTemporaryFile [ AnyStr ] ):
177178 def __init__ (self , * args , ** kwargs ):
178179 if "b" in kwargs .get ("mode" , "b" ):
179180 self ._out_encoding = kwargs .pop ("encoding" )
You can’t perform that action at this time.
0 commit comments