Skip to content

Commit

Permalink
[pyright updated to 1.1.292] Update Version (#144)
Browse files Browse the repository at this point in the history
* Pyright NPM Package update to 1.1.292

* Fix version condition in langserver

---------

Co-authored-by: RobertCraigie <RobertCraigie@users.noreply.github.com>
  • Loading branch information
RobertCraigie and RobertCraigie authored Feb 1, 2023
1 parent a935769 commit 67b95d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ You can also setup pyright to run automatically before each commit by setting up
```yaml
repos:
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.291
rev: v1.1.292
hooks:
- id: pyright
```
Expand Down
4 changes: 2 additions & 2 deletions pyright/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = '1.1.291'
__pyright_version__ = '1.1.291'
__version__ = '1.1.292'
__pyright_version__ = '1.1.292'
2 changes: 1 addition & 1 deletion pyright/langserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def run(
TEMP_DIR.mkdir(exist_ok=True, parents=True)

version = os.environ.get('PYRIGHT_PYTHON_FORCE_VERSION', __pyright_version__)
if version is None:
if version == 'latest':
version = node.latest('pyright')

pkg = TEMP_DIR / 'node_modules' / 'pyright' / 'package.json'
Expand Down

0 comments on commit 67b95d7

Please sign in to comment.