Skip to content

Conversation

@github-actions
Copy link
Contributor

Close and reopen this PR to trigger CI

@github-actions github-actions bot added the ty Multi-file analysis & type inference label Jul 28, 2025
@github-actions github-actions bot added the ty Multi-file analysis & type inference label Jul 28, 2025
@AlexWaygood AlexWaygood force-pushed the typeshedbot/sync-typeshed branch from 4038ea4 to edb424f Compare July 28, 2025 22:03
@AlexWaygood AlexWaygood enabled auto-merge (squash) July 28, 2025 22:03
@github-actions
Copy link
Contributor Author

Diagnostic diff on typing conformance tests

No changes detected when running ty on typing conformance tests ✅

@AlexWaygood AlexWaygood merged commit c6a1232 into main Jul 28, 2025
36 of 37 checks passed
@AlexWaygood AlexWaygood deleted the typeshedbot/sync-typeshed branch July 28, 2025 22:06
@github-actions
Copy link
Contributor Author

mypy_primer results

Changes were detected when running on open source projects
trio (https://github.com/python-trio/trio)
+ src/trio/_tests/test_highlevel_open_unix_stream.py:49:21: warning[deprecated] The function `mktemp` is deprecated: Deprecated since Python 2.3. Use `mkstemp()` or `NamedTemporaryFile(delete=False)` instead.
+ src/trio/_tests/test_highlevel_open_unix_stream.py:57:25: warning[deprecated] The function `mktemp` is deprecated: Deprecated since Python 2.3. Use `mkstemp()` or `NamedTemporaryFile(delete=False)` instead.
- Found 736 diagnostics
+ Found 738 diagnostics

mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
- pymongo/pool_shared.py:319:72: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
- pymongo/pool_shared.py:374:86: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
- pymongo/pool_shared.py:493:72: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
- pymongo/pool_shared.py:542:72: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
- Found 416 diagnostics
+ Found 412 diagnostics

cloud-init (https://github.com/canonical/cloud-init)
+ tests/unittests/config/test_cc_seed_random.py:34:36: warning[deprecated] The function `mktemp` is deprecated: Deprecated since Python 2.3. Use `mkstemp()` or `NamedTemporaryFile(delete=False)` instead.
- Found 597 diagnostics
+ Found 598 diagnostics

poetry (https://github.com/python-poetry/poetry)
+ tests/installation/test_executor.py:150:29: warning[deprecated] The function `mktemp` is deprecated: Deprecated since Python 2.3. Use `mkstemp()` or `NamedTemporaryFile(delete=False)` instead.
- Found 932 diagnostics
+ Found 933 diagnostics

pwndbg (https://github.com/pwndbg/pwndbg)
+ pwndbg/aglib/file.py:103:31: warning[deprecated] The function `mktemp` is deprecated: Deprecated since Python 2.3. Use `mkstemp()` or `NamedTemporaryFile(delete=False)` instead.
- Found 2288 diagnostics
+ Found 2289 diagnostics

pywin32 (https://github.com/mhammond/pywin32)
+ com/win32com/server/register.py:569:25: warning[deprecated] The function `mktemp` is deprecated: Deprecated since Python 2.3. Use `mkstemp()` or `NamedTemporaryFile(delete=False)` instead.
+ com/win32com/test/testxslt.py:12:32: warning[deprecated] The function `mktemp` is deprecated: Deprecated since Python 2.3. Use `mkstemp()` or `NamedTemporaryFile(delete=False)` instead.
+ com/win32com/test/util.py:105:28: warning[deprecated] The function `mktemp` is deprecated: Deprecated since Python 2.3. Use `mkstemp()` or `NamedTemporaryFile(delete=False)` instead.
+ win32/Demos/mmapfile_demo.py:12:18: warning[deprecated] The function `mktemp` is deprecated: Deprecated since Python 2.3. Use `mkstemp()` or `NamedTemporaryFile(delete=False)` instead.
+ win32/Demos/mmapfile_demo.py:54:24: warning[deprecated] The function `mktemp` is deprecated: Deprecated since Python 2.3. Use `mkstemp()` or `NamedTemporaryFile(delete=False)` instead.
+ win32/Demos/winprocess.py:204:25: warning[deprecated] The function `mktemp` is deprecated: Deprecated since Python 2.3. Use `mkstemp()` or `NamedTemporaryFile(delete=False)` instead.
+ win32/test/test_win32file.py:176:29: warning[deprecated] The function `mktemp` is deprecated: Deprecated since Python 2.3. Use `mkstemp()` or `NamedTemporaryFile(delete=False)` instead.
+ win32/test/test_win32file.py:215:29: warning[deprecated] The function `mktemp` is deprecated: Deprecated since Python 2.3. Use `mkstemp()` or `NamedTemporaryFile(delete=False)` instead.
+ win32/test/test_win32file.py:608:27: warning[deprecated] The function `mktemp` is deprecated: Deprecated since Python 2.3. Use `mkstemp()` or `NamedTemporaryFile(delete=False)` instead.
+ win32/test/test_win32file.py:733:26: warning[deprecated] The function `mktemp` is deprecated: Deprecated since Python 2.3. Use `mkstemp()` or `NamedTemporaryFile(delete=False)` instead.
+ win32/test/test_win32rcparser.py:55:28: warning[deprecated] The function `mktemp` is deprecated: Deprecated since Python 2.3. Use `mkstemp()` or `NamedTemporaryFile(delete=False)` instead.
- Found 1993 diagnostics
+ Found 2004 diagnostics

paasta (https://github.com/yelp/paasta)
+ paasta_tools/cli/cmds/local_run.py:969:39: warning[deprecated] The function `mktemp` is deprecated: Deprecated since Python 2.3. Use `mkstemp()` or `NamedTemporaryFile(delete=False)` instead.
- Found 880 diagnostics
+ Found 881 diagnostics

pytest (https://github.com/pytest-dev/pytest)
+ testing/_py/test_local.py:746:29: warning[deprecated] The function `mktemp` is deprecated: Deprecated since Python 2.3. Use `mkstemp()` or `NamedTemporaryFile(delete=False)` instead.
- Found 493 diagnostics
+ Found 494 diagnostics

dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ tests/profiling/test_uwsgi.py:34:28: warning[deprecated] The function `mktemp` is deprecated: Deprecated since Python 2.3. Use `mkstemp()` or `NamedTemporaryFile(delete=False)` instead.
+ tests/tracer/test_writer.py:597:28: warning[deprecated] The function `mktemp` is deprecated: Deprecated since Python 2.3. Use `mkstemp()` or `NamedTemporaryFile(delete=False)` instead.
- Found 6503 diagnostics
+ Found 6505 diagnostics
No memory usage changes detected ✅

@AlexWaygood
Copy link
Member

The new deprecated errors in the primer diff are as a result of python/typeshed#14433

dcreager added a commit that referenced this pull request Aug 1, 2025
* main: (24 commits)
  Add `Checker::context` method, deduplicate Unicode checks (#19609)
  [`flake8-pyi`] Preserve inline comment in ellipsis removal (`PYI013`) (#19399)
  [ty] Add flow diagram for import resolution
  [ty] Add comments to some core resolver functions
  [ty] Add missing ticks and use consistent quoting
  [ty] Reflow some long lines
  [ty] Unexport helper function
  [ty] Remove offset from `CompletionTargetTokens::Unknown`
  [`pyupgrade`] Fix `UP030` to avoid modifying double curly braces in format strings (#19378)
  [ty] fix a typo  (#19621)
  [ty] synthesize `__replace__` for dataclasses (>=3.13) (#19545)
  [ty] Discard `Definition`s when normalizing `Signature`s (#19615)
  [ty] Fix empty spans following a line terminator and unprintable character spans in diagnostics (#19535)
  Add `LinterContext::settings` to avoid passing separate settings (#19608)
  Support `.pyi` files in ruff analyze graph (#19611)
  [ty] Sync vendored typeshed stubs (#19607)
  [ty] Bump docstring-adder pin (#19606)
  [`perflint`] Ignore rule if target is `global` or `nonlocal` (`PERF401`) (#19539)
  Add license classifier back to pyproject.toml (#19599)
  [ty] Add stub mapping support to signature help (#19570)
  ...
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.

2 participants