mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-26 05:41:11 +08:00
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:
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@@ -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:
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user