Skip to content

Commit e945b97

Browse files
bump mypy to 1.0.0, run min supported python version, update docs (Azure#29287)
1 parent b5ee484 commit e945b97

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

doc/dev/static_type_checking.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,15 @@ environment run in CI and brings in the third party stub packages necessary. To
181181

182182
### Run mypy
183183

184-
mypy is currently pinned to version [0.931](https://pypi.org/project/mypy/0.931/).
184+
mypy is currently pinned to version [1.0.0](https://pypi.org/project/mypy/1.0.0/).
185185

186186
To run mypy on your library, run the tox mypy env at the package level:
187187

188188
`.../azure-sdk-for-python/sdk/textanalytics/azure-ai-textanalytics>tox -e mypy -c ../../../eng/tox/tox.ini`
189189

190190
If you don't want to use `tox` you can also install and run mypy on its own:
191191

192-
`pip install mypy==0.931`
192+
`pip install mypy==1.0.0`
193193

194194
`.../azure-sdk-for-python/sdk/textanalytics/azure-ai-textanalytics>mypy azure`
195195

eng/pipelines/templates/steps/run_mypy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ parameters:
1212
# Please use `$(TargetingString)` to refer to the python packages glob string. This was previously `${{ parameters.BuildTargetingString }}`.
1313
steps:
1414
- task: UsePythonVersion@0
15-
displayName: 'Use Python 3.10'
15+
displayName: 'Use Python 3.7'
1616
inputs:
17-
versionSpec: '3.10'
17+
versionSpec: '3.7'
1818
condition: and(succeededOrFailed(), ne(variables['Skip.MyPy'],'true'))
1919

2020
- script: |

eng/tox/run_mypy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"-m",
5555
"mypy",
5656
"--python-version",
57-
"3.10",
57+
"3.7",
5858
"--show-error-codes",
5959
"--ignore-missing-imports",
6060
]

eng/tox/tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ setenv =
125125
PROXY_URL=http://localhost:5003
126126
deps =
127127
{[base]deps}
128-
mypy==0.931
128+
mypy==1.0.0
129129
types-chardet==4.0.3
130130
types-requests==2.27.9
131131
types-six==1.16.10

0 commit comments

Comments
 (0)