Skip to content

Commit

Permalink
run pyright with 3.7 (#28503)
Browse files Browse the repository at this point in the history
* run pyright with 3.7

* fix template
  • Loading branch information
kristapratico authored Jan 27, 2023
1 parent 8c341c8 commit 098f546
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions eng/pipelines/templates/steps/run_pyright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ parameters:
# Please use `$(TargetingString)` to refer to the python packages glob string. This was previously `${{ parameters.BuildTargetingString }}`.
steps:
- task: UsePythonVersion@0
displayName: 'Use Python 3.10'
displayName: 'Use Python 3.7'
inputs:
versionSpec: '3.10'
versionSpec: '3.7'
condition: and(succeededOrFailed(), ne(variables['Skip.Pyright'],'true'))

- script: |
Expand Down
2 changes: 1 addition & 1 deletion pyrightconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"reportUnnecessaryTypeIgnoreComment": "warning",
"reportTypeCommentUsage": true,
"reportMissingImports": false,
"pythonVersion": "3.10"
"pythonVersion": "3.7"
}

0 comments on commit 098f546

Please sign in to comment.