Stubtest settings: change ignore_missing_stub default to false (#9779)

If you're reading about this commit from an autogenerated changelog entry, this should have no user-visible impact on how the stubs are interpreted by a type checker; it's just an internal change to how typeshed's tests work.
This commit is contained in:
Avasam
2023-02-20 17:37:45 -05:00
committed by GitHub
parent 3786ab295e
commit ed6748fb32
149 changed files with 155 additions and 283 deletions

View File

@@ -71,14 +71,7 @@ def create_metadata(stub_dir: str, version: str) -> None:
return
print(f"Writing {filename}")
with open(filename, "w", encoding="UTF-8") as file:
file.write(
f"""\
version = "{version}.*"
[tool.stubtest]
ignore_missing_stub = false
"""
)
file.write(f'version = "{version}.*"')
def add_pyright_exclusion(stub_dir: str) -> None:

View File

@@ -2,6 +2,7 @@ version = "0.1.*"
requires = ["types-Pillow"]
[tool.stubtest]
ignore_missing_stub = true
# TODO: figure out how to run stubtest for this package
# (the package pins Pillow in a problematic way)
skip = true

View File

@@ -1,6 +1,3 @@
version = "2.0.*"
requires = ["types-python-dateutil"]
obsolete_since = "2.1.0" # Released on 2023-02-19
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,5 +1,2 @@
version = "1.2.*"
requires = []
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "3.0.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,3 +1,6 @@
version = "3.0.*"
# Requires a version of flask with a `py.typed` file
requires = ["Flask>=2.0.0"]
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,3 +1,6 @@
version = "4.0.*"
# Requires a version of flask with a `py.typed` file
requires = ["Flask>=2.0.0", "types-Flask-SQLAlchemy"]
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,3 +1,6 @@
version = "2.5.*"
requires = ["types-SQLAlchemy"]
obsolete_since = "3.0.1" # Released on 2022-10-11
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,11 +1,10 @@
version = "0.5.*"
# Requires a version of numpy with a `py.typed` file
requires = ["types-cffi", "numpy>=1.20"]
requires = ["numpy>=1.20", "types-cffi"]
[tool.stubtest]
ignore_missing_stub = false
# darwin and win32 are equivalent
platforms = ["linux", "darwin"]
platforms = ["darwin", "linux"]
apt_dependencies = ["libjack-dev"]
brew_dependencies = ["jack"]
# No need to install on the CI. Leaving here as information for Windows contributors.

View File

@@ -1 +1,4 @@
version = "3.4.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1 +1,4 @@
version = "9.4.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,5 +1,2 @@
version = "0.9.*"
requires = ["types-PyScreeze", "types-Pillow"]
[tool.stubtest]
ignore_missing_stub = false
requires = ["types-Pillow", "types-PyScreeze"]

View File

@@ -1 +1,4 @@
version = "1.0.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,5 +1,2 @@
version = "0.1.*"
requires = ["types-Pillow"]
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "6.0.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,2 +1,5 @@
version = "2.14.*"
requires = ["types-docutils", "types-setuptools"]
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -4,3 +4,6 @@ extra_description = """\
includes a mypy plugin for more precise types.\
"""
obsolete_since = "2.0.0" # Released on 2023-01-26
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1 +1,4 @@
version = "1.8.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,6 +1,5 @@
version = "22.1.*"
[tool.stubtest]
ignore_missing_stub = false
# linux and darwin are equivalent
platforms = ["linux", "win32"]

View File

@@ -1,5 +1,2 @@
version = "1.17.*"
requires = []
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "1.4.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1 +1,4 @@
version = "2.11.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,2 +1,5 @@
version = "2.11.*"
requires = ["types-pytz"]
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,4 +1 @@
version = "3.7.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -2,4 +2,5 @@ version = "4.11.*"
requires = ["types-html5lib"]
[tool.stubtest]
extras = ["lxml", "html5lib"]
ignore_missing_stub = true
extras = ["html5lib", "lxml"]

View File

@@ -1 +1,4 @@
version = "6.0.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,2 +1,5 @@
version = "2.49.*"
requires = []
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1 +1,4 @@
version = "4.18.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,4 +1 @@
version = "5.3.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,3 +1,6 @@
version = "1.0.*"
# also types-lxml and types-icalendar when those stubs are added
requires = ["types-requests", "types-vobject"]
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,6 +1,5 @@
version = "1.15.*"
[tool.stubtest]
ignore_missing_stub = false
# linux and darwin are mostly equivalent, except for a single `RTLD_DEEPBIND` variable
platforms = ["linux", "win32"]

View File

@@ -1,2 +1,5 @@
version = "5.0.*"
obsolete_since = "5.1.0" # Released on 2022-12-01
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,4 +1,3 @@
version = "0.14.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "0.1.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,5 +1,4 @@
version = "0.4.*"
[tool.stubtest]
ignore_missing_stub = false
platforms = ["win32", "linux"]
platforms = ["linux", "win32"]

View File

@@ -1 +1,4 @@
version = "0.9.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,4 +1 @@
version = "0.7.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "2.4"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "1.3.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,5 +1,4 @@
version = "1.1.*"
[tool.stubtest]
ignore_missing_stub = false
extras = ["fasttext", "langdetect"]

View File

@@ -1,4 +1 @@
version = "5.1.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "1.2.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "2.0.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "0.6.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1 +1,4 @@
version = "0.19.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,4 +1 @@
version = "0.6.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,5 +1,2 @@
version = "2.1.*"
obsolete_since = "2.2.0" # Released on 2022-10-31
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "0.4.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "2.0.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "1.7.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1 +1,4 @@
version = "23.2.13"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1 +1,4 @@
version = "2.1.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1 +1,4 @@
version = "1.7.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1 +1,4 @@
version = "1.3.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1 +1,4 @@
version = "0.3.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1 +1,4 @@
version = "0.19.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1 +1,4 @@
version = "1.14.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,5 +1,2 @@
version = "2.6.1"
requires = ["types-Pillow>=9.2.0"]
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1 +1,4 @@
version = "2.1.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,4 +1 @@
version = "2.15.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1,5 @@
version = "1.1.*"
[tool.stubtest]
ignore_missing_stub = true
extras = ["all"]

View File

@@ -1,4 +1 @@
version = "0.21.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "10.0.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "3.1.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -2,5 +2,4 @@ version = "1.36.*"
requires = ["types-urllib3"]
[tool.stubtest]
ignore_missing_stub = false
extras = ["extra"]

View File

@@ -1 +1,4 @@
version = "2.0.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,4 +1 @@
version = "1.0.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1,5 @@
version = "4.17.*"
[tool.stubtest]
ignore_missing_stub = true
extras = ["format"]

View File

@@ -1,7 +1,6 @@
version = "0.13.*"
[tool.stubtest]
ignore_missing_stub = false
# [tool.stubtest]
# While the stubs slightly differ on Windows vs Linux.
# It's only by possible mouse buttons and event literal types.
# As well as returning a tuple of int/long from keyboard.mouse.get_position

View File

@@ -2,6 +2,7 @@ version = "2.9.*"
requires = ["types-pyasn1"]
[tool.stubtest]
ignore_missing_stub = true
apt_dependencies = ["libkrb5-dev"]
# No need to install on the CI. Leaving here as information for MacOs/Windows contributors.
# brew_dependencies = ["krb5"]

View File

@@ -1,4 +1 @@
version = "5.0.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "1.0.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "2.1.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "0.8.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1 +1,4 @@
version = "3.2.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1 +1,4 @@
version = "3.0.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1 +1,4 @@
version = "2.4.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,4 +1 @@
version = "1.6.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -3,5 +3,6 @@ version = "3.0.*"
requires = ["cryptography>=37.0.0"]
[tool.stubtest]
ignore_missing_stub = true
# linux and darwin are equivalent
platforms = ["linux", "win32"]

View File

@@ -1,4 +1 @@
version = "0.10.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "1.7.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "1.0.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "3.15.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1 +1,4 @@
version = "0.13.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,9 +1,6 @@
version = "1.3.*"
stub_distribution = "types-pika-ts" # https://github.com/python/typeshed/issues/9246
stub_distribution = "types-pika-ts" # https://github.com/python/typeshed/issues/9246
extra_description = """\
The `types-pika` package contains alternate, more complete type stubs, that \
are maintained outside of typeshed.\
"""
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "1.3.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "1.1.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,5 +1,2 @@
version = "3.4.*"
obsolete_since = "3.5.0" # Released on 2022-10-28
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,2 +1,5 @@
version = "4.21.*"
extra_description = "Generated with aid from mypy-protobuf v3.4.0"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,5 +1,4 @@
version = "5.9.*"
[tool.stubtest]
ignore_missing_stub = false
platforms = ["win32", "linux", "darwin"]
platforms = ["darwin", "linux", "win32"]

View File

@@ -1 +1,4 @@
version = "2.9.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,3 +1,6 @@
version = "23.0.*"
# Requires a version of cryptography with a `py.typed` file
requires = ["cryptography>=35.0.0"]
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,4 +1 @@
version = "1.1"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,4 +1 @@
version = "0.4.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,8 +1,7 @@
version = "0.2.*"
[tool.stubtest]
ignore_missing_stub = false
# linux and win32 are equivalent
platforms = ["linux", "darwin"]
platforms = ["darwin", "linux"]
apt_dependencies = ["portaudio19-dev"]
brew_dependencies = ["portaudio"]

View File

@@ -1,4 +1 @@
version = "2.0.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1,7 +1,6 @@
version = "7.45.2"
[tool.stubtest]
ignore_missing_stub = false
# Install on Windows requires building PycURL from source
#
# Install on MacOS is too complicated for the CI and does not work with stubtest:

View File

@@ -1,4 +1 @@
version = "0.3.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1 +1,4 @@
version = "3.0.*"
[tool.stubtest]
ignore_missing_stub = true

View File

@@ -1,5 +1,2 @@
version = "5.8.*"
requires = ["types-setuptools"]
[tool.stubtest]
ignore_missing_stub = false

Some files were not shown because too many files have changed in this diff Show More