Skip to content

Commit

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

* Fix lint

---------

Co-authored-by: RobertCraigie <RobertCraigie@users.noreply.github.com>
  • Loading branch information
RobertCraigie and RobertCraigie committed Jun 7, 2023
1 parent ddb484c commit b0f08f0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 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.311
rev: v1.1.312
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.311'
__pyright_version__ = '1.1.311'
__version__ = '1.1.312'
__pyright_version__ = '1.1.312'
7 changes: 5 additions & 2 deletions pyright/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import platform
import subprocess
from functools import lru_cache
from typing import Dict, Mapping, Tuple, Optional, Union, Any
from typing import Dict, Mapping, Tuple, Optional, Union, Any, cast
from pathlib import Path

from . import errors
Expand Down Expand Up @@ -112,7 +112,10 @@ def run(
raise RuntimeError(f'Unknown strategy: {binary.strategy}')

log.debug('Running node command with args: %s', node_args)
return subprocess.run(node_args, env=env, **kwargs)
return cast(
'subprocess.CompletedProcess[str] | subprocess.CompletedProcess[bytes]',
subprocess.run(node_args, env=env, **kwargs),
)


def version(target: Target) -> Tuple[int, ...]:
Expand Down

0 comments on commit b0f08f0

Please sign in to comment.