Skip to content

Conversation

AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Jun 17, 2025

Summary

The change meant that we never finished type-checking dd-trace-py, meaning mypy_primer runs never finished. Apologies -- I should have checked my analysis in #18705 (comment) more thoroughly before merging #18705.

Test Plan

Mypy primer runs are successfully finishing on #18722, which is based on top of this branch. (I wouldn't expect primer runs to finish on this PR, because ty_old is the main branch here, which is still a version of ty that will never finish checking dd-trace-py.)

@AlexWaygood AlexWaygood force-pushed the alex/debug-primer branch 2 times, most recently from be1e328 to f3d198c Compare June 17, 2025 14:17
…m` imports and unresolved attributes (#18705)"

This reverts commit 913f136.
@AlexWaygood AlexWaygood changed the title have i broken mypy_primer Revert "[ty] Offer "Did you mean...?" suggestions for unresolved from imports and unresolved attributes (#18705)" Jun 17, 2025
@AlexWaygood AlexWaygood added the ty Multi-file analysis & type inference label Jun 17, 2025
@AlexWaygood AlexWaygood marked this pull request as ready for review June 17, 2025 14:44
@AlexWaygood
Copy link
Member Author

(Note: @sharkdp thinks the bug is in all_members, which means there's probably a way of triggering a hang from exactly the wrong autocomplete request. This revert doesn't fix the underlying bug, but it means mypy_primer runs start finishing again, which is important!)

@AlexWaygood AlexWaygood merged commit 685eac1 into main Jun 17, 2025
34 of 35 checks passed
@AlexWaygood AlexWaygood deleted the alex/debug-primer branch June 17, 2025 14:48
carljm added a commit to MatthewMckee4/ruff that referenced this pull request Jun 17, 2025
…ence

* main: (71 commits)
  Bump 0.12.0 (astral-sh#18724)
  Revert "[ty] Offer "Did you mean...?" suggestions for unresolved `from` imports and unresolved attributes (astral-sh#18705)" (astral-sh#18721)
  [`flake8-return`] Stabilize only add `return None` at the end when fixing `implicit-return` (`RET503`) (astral-sh#18516)
  [`pyupgrade`] Stabilize `non-pep695-generic-function` (`UP047`) (astral-sh#18524)
  [`pyupgrade`] Stabilize `non-pep695-generic-class` (`UP046`) (astral-sh#18519)
  [`pandas-vet`] Deprecate `pandas-df-variable-name` (`PD901`) (astral-sh#18618)
  [`flake8-bandit`] Remove `suspicious-xmle-tree-usage` (`S320`) (astral-sh#18617)
  Stabilize `dataclass-enum` (`RUF049`) (astral-sh#18570)
  Stabilize `unnecessary-dict-index-lookup` (`PLR1733`) (astral-sh#18571)
  Remove rust-toolchain.toml from sdist (astral-sh#17925)
  Stabilize `starmap-zip` (`RUF058`) (astral-sh#18525)
  [`flake8-logging`] Stabilize `exc-info-outside-except-handler` (`LOG014`) (astral-sh#18517)
  [`pyupgrade`] Stabilize `non-pep604-annotation-optional` (`UP045`) and preview behavior for `non-pep604-annotation-union` (`UP007`) (astral-sh#18505)
  Stabilize `pytest-warns-too-broad` (`PT030`) (astral-sh#18568)
  Stabilize `for-loop-writes` (`FURB122`) (astral-sh#18565)
  Stabilize `pytest-warns-with-multiple-statements` (`PT031`) (astral-sh#18569)
  Stabilize `pytest-parameter-with-default-argument` (`PT028`) (astral-sh#18566)
  Stabilize `nan-comparison` (`PLW0177`) (astral-sh#18559)
  Stabilize `check-and-remove-from-set` (`FURB132`) (astral-sh#18560)
  Stabilize `unnecessary-round` (`RUF057`) (astral-sh#18563)
  ...
AlexWaygood added a commit that referenced this pull request Jun 17, 2025
…lved `from` imports and unresolved attributes (#18705)" (#18721)"

This reverts commit 685eac1.
AlexWaygood added a commit that referenced this pull request Jun 18, 2025
…lved `from` imports and unresolved attributes (#18705)" (#18721)"

This reverts commit 685eac1.
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