Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pyright updated to 1.1.312] Update Version #183

Merged
merged 2 commits into from
Jun 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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