mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-10 17:07:29 +08:00
'module' argument to ForwardRef.__init__() added in Python 3.9.7 (#6017)
Pin Python 3.9.7 for stubtest and update 3.10.0 to rc2
This commit is contained in:
3
.github/workflows/tests.yml
vendored
3
.github/workflows/tests.yml
vendored
@@ -112,7 +112,8 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
|
||||
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10.0-rc.1"]
|
||||
# Python 3.9.7 is required due to changes to ForwardRef.
|
||||
python-version: ["3.6", "3.7", "3.8", "3.9.7", "3.10.0-rc.2"]
|
||||
fail-fast: false
|
||||
|
||||
steps:
|
||||
|
||||
@@ -704,7 +704,8 @@ if sys.version_info >= (3, 7):
|
||||
__forward_evaluated__: bool
|
||||
__forward_value__: Any | None
|
||||
__forward_is_argument__: bool
|
||||
if sys.version_info >= (3, 10):
|
||||
if sys.version_info >= (3, 9):
|
||||
# The module argument was added in Python 3.9.7.
|
||||
def __init__(self, arg: str, is_argument: bool = ..., module: Any | None = ...) -> None: ...
|
||||
else:
|
||||
def __init__(self, arg: str, is_argument: bool = ...) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user