Update pyright to 1.1.278 (#9077)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Nikita Sobolev
2022-11-03 18:32:10 +03:00
committed by GitHub
parent a17fa5001a
commit 86f9d93003
8 changed files with 9 additions and 13 deletions

View File

@@ -100,7 +100,7 @@ jobs:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
fail-fast: false
env:
PYRIGHT_VERSION: 1.1.273 # Must match pyright_test.py.
PYRIGHT_VERSION: 1.1.278 # Must match pyright_test.py.
steps:
- uses: actions/checkout@v3
- uses: jakebailey/pyright-action@v1

View File

@@ -1,7 +1,6 @@
import pyexpat.errors as errors
import pyexpat.model as model
from _typeshed import ReadableBuffer, SupportsRead
from collections.abc import Callable
from pyexpat import errors as errors, model as model
from typing import Any
from typing_extensions import TypeAlias, final

View File

@@ -1 +1 @@
import xml.parsers as parsers
from xml import parsers as parsers

View File

@@ -1 +1 @@
import xml.parsers.expat as expat
from xml.parsers import expat as expat

View File

@@ -5,7 +5,6 @@ from typing import Optional
from typing_extensions import TypeAlias
from ._canonical_names import all_modifiers as all_modifiers, sided_modifiers as sided_modifiers
from ._generic import GenericListener as _GenericListener
from ._keyboard_event import KEY_DOWN as KEY_DOWN, KEY_UP as KEY_UP, KeyboardEvent as KeyboardEvent
_Key: TypeAlias = int | str

View File

@@ -8,9 +8,11 @@ from typing_extensions import Literal, TypeAlias
import pkg_resources
from PyInstaller import HOMEPATH as HOMEPATH
from PyInstaller.depend.imphookapi import PostGraphAPI
from PyInstaller.utils.hooks import conda as conda_support
from PyInstaller.utils.hooks import conda
from PyInstaller.utils.hooks.win32 import get_pywin32_module_file_attribute as get_pywin32_module_file_attribute
conda_support = conda
_Environ: TypeAlias = SupportsKeysAndGetItem[str, str] | Iterable[tuple[str, str]] | Mapping[str, str]
PY_IGNORE_EXTENSIONS: set[str]

View File

@@ -1,5 +1 @@
import six.moves.urllib.error as error
import six.moves.urllib.parse as parse
import six.moves.urllib.request as request
import six.moves.urllib.response as response
import six.moves.urllib.robotparser as robotparser
from six.moves.urllib import error as error, parse as parse, request as request, response as response, robotparser as robotparser

View File

@@ -6,7 +6,7 @@ import subprocess
import sys
from pathlib import Path
_PYRIGHT_VERSION = "1.1.273" # Must match .github/workflows/tests.yml.
_PYRIGHT_VERSION = "1.1.278" # Must match .github/workflows/tests.yml.
_WELL_KNOWN_FILE = Path("tests", "pyright_test.py")