Skip to content

[ty] Sync vendored typeshed stubs #19174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 7, 2025
Merged

[ty] Sync vendored typeshed stubs #19174

merged 2 commits into from
Jul 7, 2025

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jul 7, 2025

Close and reopen this PR to trigger CI

@github-actions github-actions bot added the ty Multi-file analysis & type inference label Jul 7, 2025
@@ -707,7 +707,7 @@ class bytes(Sequence[int]):
def strip(self, bytes: ReadableBuffer | None = None, /) -> bytes: ...
def swapcase(self) -> bytes: ...
def title(self) -> bytes: ...
def translate(self, table: ReadableBuffer | None, /, delete: bytes = b"") -> bytes: ...
def translate(self, table: ReadableBuffer | None, /, delete: ReadableBuffer = b"") -> bytes: ...
Copy link
Contributor

@sharkdp sharkdp Jul 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran the typeshed sync workflow manually to get this change in, to prevent new false positives in #19142

@sharkdp sharkdp closed this Jul 7, 2025
@sharkdp sharkdp reopened this Jul 7, 2025
Copy link
Contributor Author

github-actions bot commented Jul 7, 2025

mypy_primer results

Changes were detected when running on open source projects
zipp (https://github.com/jaraco/zipp)
- TOTAL MEMORY USAGE: ~28MB
+ TOTAL MEMORY USAGE: ~30MB

beartype (https://github.com/beartype/beartype)
- TOTAL MEMORY USAGE: ~88MB
+ TOTAL MEMORY USAGE: ~97MB

Expression (https://github.com/cognitedata/Expression)
-     memo fields = ~49MB
+     memo fields = ~54MB

discord.py (https://github.com/Rapptz/discord.py)
-     memo fields = ~207MB
+     memo fields = ~189MB

porcupine (https://github.com/Akuli/porcupine)
-     memo fields = ~97MB
+     memo fields = ~106MB

mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
- error[invalid-argument-type] pymongo/client_options.py:56:41: Argument to function `_build_credentials_tuple` is incorrect: Expected `str`, found `Any | Literal["DEFAULT"] | None`
- error[invalid-return-type] pymongo/client_options.py:145:16: Return type does not match returned value: expected `tuple[SSLContext | None, bool]`, found `tuple[SSLContext | SSLContext | Unknown, Any | Literal[False]]`
+ error[invalid-return-type] pymongo/client_options.py:145:16: Return type does not match returned value: expected `tuple[SSLContext | None, bool]`, found `tuple[SSLContext | SSLContext | Unknown, Any]`
- Found 430 diagnostics
+ Found 429 diagnostics

colour (https://github.com/colour-science/colour)
- error[invalid-assignment] colour/geometry/primitives.py:142:5: Object of type `Unknown | LiteralString` is not assignable to `Literal["-x", "+x", "-y", "+y", "-z", "+z", "xy", "xz", "yz", "yx", "zx", "zy"]`
- Found 488 diagnostics
+ Found 487 diagnostics

flake8 (https://github.com/pycqa/flake8)
-     memo fields = ~60MB
+     memo fields = ~66MB

ignite (https://github.com/pytorch/ignite)
+ warning[redundant-cast] ignite/handlers/visdom_logger.py:182:22: Value is already of type `str`
- Found 2137 diagnostics
+ Found 2138 diagnostics

pwndbg (https://github.com/pwndbg/pwndbg)
- error[invalid-return-type] pwndbg/lib/cache.py:160:28: Return type does not match returned value: expected `T`, found `object`
- Found 2275 diagnostics
+ Found 2274 diagnostics

isort (https://github.com/pycqa/isort)
- TOTAL MEMORY USAGE: ~88MB
+ TOTAL MEMORY USAGE: ~97MB

altair (https://github.com/vega/altair)
-     memo fields = ~251MB
+     memo fields = ~228MB

pytest (https://github.com/pytest-dev/pytest)
- error[invalid-return-type] src/_pytest/skipping.py:158:12: Return type does not match returned value: expected `tuple[bool, str]`, found `tuple[Any | bool, Any | None | str]`
- Found 528 diagnostics
+ Found 527 diagnostics
- TOTAL MEMORY USAGE: ~251MB
+ TOTAL MEMORY USAGE: ~276MB

static-frame (https://github.com/static-frame/static-frame)
- TOTAL MEMORY USAGE: ~405MB
+ TOTAL MEMORY USAGE: ~445MB

dd-trace-py (https://github.com/DataDog/dd-trace-py)
- error[invalid-argument-type] tests/appsec/iast/fixtures/integration/main_configure_wrong.py:27:22: Argument to bound method `configure` is incorrect: Expected `bool | None`, found `str | Unknown`
+ error[invalid-argument-type] tests/appsec/iast/fixtures/integration/main_configure_wrong.py:27:22: Argument to bound method `configure` is incorrect: Expected `bool | None`, found `str`

scikit-learn (https://github.com/scikit-learn/scikit-learn)
-     memo fields = ~539MB
+     memo fields = ~593MB

@sharkdp sharkdp merged commit b6edfbc into main Jul 7, 2025
36 checks passed
@sharkdp sharkdp deleted the typeshedbot/sync-typeshed branch July 7, 2025 10:00
UnboundVariable pushed a commit to UnboundVariable/ruff that referenced this pull request Jul 7, 2025
…c_tokens

* 'main' of https://github.com/astral-sh/ruff: (27 commits)
  [ty] First cut at semantic token provider (astral-sh#19108)
  [`flake8-simplify`] Make example error out-of-the-box (`SIM116`) (astral-sh#19111)
  [`flake8-use-pathlib`] Make example error out-of-the-box (`PTH210`) (astral-sh#19189)
  [`flake8-use-pathlib`] Add autofixes for `PTH203`, `PTH204`, `PTH205` (astral-sh#18922)
  [`flake8-type-checking`] Fix syntax error introduced by fix (`TC008`) (astral-sh#19150)
  [`flake8-pyi`] Make example error out-of-the-box (`PYI007`, `PYI008`) (astral-sh#19103)
  Update Rust crate indicatif to 0.18.0 (astral-sh#19165)
  [ty] Add separate CI job for memory usage stats (astral-sh#19134)
  [ty] Add documentation for server traits (astral-sh#19137)
  Rename to `SessionSnapshot`, move unwind assertion closer (astral-sh#19177)
  [`flake8-type-checking`] Make example error out-of-the-box (`TC001`) (astral-sh#19151)
  [ty] Bare `ClassVar` annotations (astral-sh#15768)
  [ty] Re-enable multithreaded pydantic benchmark (astral-sh#19176)
  [ty] Implement equivalence for protocols with method members (astral-sh#18659)
  [ty] Use RHS inferred type for bare `Final` symbols (astral-sh#19142)
  [ty] Support declaration-only attributes (astral-sh#19048)
  [ty] Sync vendored typeshed stubs (astral-sh#19174)
  Update dependency pyodide to ^0.28.0 (astral-sh#19164)
  Update NPM Development dependencies (astral-sh#19170)
  Update taiki-e/install-action action to v2.56.7 (astral-sh#19169)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ty Multi-file analysis & type inference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant