Use Python 3.10 beta 4 instead of beta 1 in CI (#5839)

Quote all Python versions to make sure they are interpreted as strings,
not floats.
This commit is contained in:
Sebastian Rittau
2021-08-02 16:30:32 +02:00
committed by GitHub
parent 6a9c7aff99
commit acc576659a
3 changed files with 4 additions and 4 deletions

View File

@@ -74,7 +74,7 @@ jobs:
strategy:
matrix:
python-platform: ["Linux", "Windows", "Darwin"]
python-version: [3.6, 3.7, 3.8, 3.9, '3.10']
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
fail-fast: false
env:
PYRIGHT_VERSION: 1.1.152 # Must match pyright_test.py.
@@ -100,7 +100,7 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
python-version: [3.6, 3.7, 3.8, 3.9, '3.10.0-beta.1']
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10.0-beta.4"]
fail-fast: false
steps:

View File

@@ -78,7 +78,7 @@ class IntFlag(int, Flag):
__rand__ = __and__
__rxor__ = __xor__
if sys.version_info >= (3, 10):
if sys.version_info >= (3, 11):
class StrEnum(str, Enum):
def __new__(cls: Type[_T], value: Union[int, _T]) -> _T: ...
class FlagBoundary(StrEnum):

View File

@@ -82,6 +82,6 @@ if sys.version_info >= (3, 10):
def correlation(__x: Sequence[_Number], __y: Sequence[_Number]) -> float: ...
def covariance(__x: Sequence[_Number], __y: Sequence[_Number]) -> float: ...
class LinearRegression(NamedTuple):
intercept: float
slope: float
intercept: float
def linear_regression(__regressor: Sequence[_Number], __dependent_variable: Sequence[_Number]) -> LinearRegression: ...