Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 86f9d93

Browse files
Update pyright to 1.1.278 (#9077)
Co-authored-by: Alex Waygood <[email protected]>
1 parent a17fa50 commit 86f9d93

8 files changed

Lines changed: 9 additions & 13 deletions

File tree

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
101101
fail-fast: false
102102
env:
103-
PYRIGHT_VERSION: 1.1.273 # Must match pyright_test.py.
103+
PYRIGHT_VERSION: 1.1.278 # Must match pyright_test.py.
104104
steps:
105105
- uses: actions/checkout@v3
106106
- uses: jakebailey/pyright-action@v1

stdlib/pyexpat/__init__.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import pyexpat.errors as errors
2-
import pyexpat.model as model
31
from _typeshed import ReadableBuffer, SupportsRead
42
from collections.abc import Callable
3+
from pyexpat import errors as errors, model as model
54
from typing import Any
65
from typing_extensions import TypeAlias, final
76

stdlib/xml/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
import xml.parsers as parsers
1+
from xml import parsers as parsers

stdlib/xml/parsers/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
import xml.parsers.expat as expat
1+
from xml.parsers import expat as expat

stubs/keyboard/keyboard/__init__.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ from typing import Optional
55
from typing_extensions import TypeAlias
66

77
from ._canonical_names import all_modifiers as all_modifiers, sided_modifiers as sided_modifiers
8-
from ._generic import GenericListener as _GenericListener
98
from ._keyboard_event import KEY_DOWN as KEY_DOWN, KEY_UP as KEY_UP, KeyboardEvent as KeyboardEvent
109

1110
_Key: TypeAlias = int | str

stubs/pyinstaller/PyInstaller/utils/hooks/__init__.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ from typing_extensions import Literal, TypeAlias
88
import pkg_resources
99
from PyInstaller import HOMEPATH as HOMEPATH
1010
from PyInstaller.depend.imphookapi import PostGraphAPI
11-
from PyInstaller.utils.hooks import conda as conda_support
11+
from PyInstaller.utils.hooks import conda
1212
from PyInstaller.utils.hooks.win32 import get_pywin32_module_file_attribute as get_pywin32_module_file_attribute
1313

14+
conda_support = conda
15+
1416
_Environ: TypeAlias = SupportsKeysAndGetItem[str, str] | Iterable[tuple[str, str]] | Mapping[str, str]
1517

1618
PY_IGNORE_EXTENSIONS: set[str]
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
import six.moves.urllib.error as error
2-
import six.moves.urllib.parse as parse
3-
import six.moves.urllib.request as request
4-
import six.moves.urllib.response as response
5-
import six.moves.urllib.robotparser as robotparser
1+
from six.moves.urllib import error as error, parse as parse, request as request, response as response, robotparser as robotparser

tests/pyright_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import sys
77
from pathlib import Path
88

9-
_PYRIGHT_VERSION = "1.1.273" # Must match .github/workflows/tests.yml.
9+
_PYRIGHT_VERSION = "1.1.278" # Must match .github/workflows/tests.yml.
1010
_WELL_KNOWN_FILE = Path("tests", "pyright_test.py")
1111

1212

0 commit comments

Comments
 (0)