Skip to content

Conversation

@AlexWaygood
Copy link
Member

Summary

These two regions of code are doing the same thing; this PR factors them out into common methods that can be used in both places.

Test Plan

Existing tests all pass. This is a pure refactor that shouldn't change functionality at all.

@AlexWaygood AlexWaygood added internal An internal refactor or improvement ty Multi-file analysis & type inference labels Jul 10, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jul 10, 2025

mypy_primer results

No ecosystem changes detected ✅
No memory usage changes detected ✅

@AlexWaygood AlexWaygood force-pushed the alex/resolve-submodule-method branch from d048d29 to 8be863d Compare July 10, 2025 13:05
@AlexWaygood AlexWaygood force-pushed the alex/resolve-submodule-method branch from 8be863d to ffb5895 Compare July 10, 2025 13:06
@AlexWaygood AlexWaygood enabled auto-merge (squash) July 10, 2025 13:07
@AlexWaygood AlexWaygood merged commit 59114d0 into main Jul 10, 2025
35 of 36 checks passed
@AlexWaygood AlexWaygood deleted the alex/resolve-submodule-method branch July 10, 2025 13:10
UnboundVariable pushed a commit to UnboundVariable/ruff that referenced this pull request Jul 11, 2025
…re_help

* 'main' of https://github.com/astral-sh/ruff:
  Add simple integration tests for all output formats (astral-sh#19265)
  [`flake8-return`] Fix false-positive for variables used inside nested functions in `RET504`  (astral-sh#18433)
  [ty] Add a `--quiet` mode (astral-sh#19233)
  Treat form feed as valid whitespace before a line continuation (astral-sh#19220)
  [ty] Make `check_file` a salsa query (astral-sh#19255)
  [ty] Consolidate submodule resolving code between `types.rs` and `ide_support.rs` (astral-sh#19256)
  [ty] Remove countme from salsa-structs (astral-sh#19257)
  [ty] Improve and document equivalence for module-literal types (astral-sh#19243)
  [ty] Optimize protocol subtyping by removing expensive and unnecessary equivalence check from the top of `Type::has_relation_to()` (astral-sh#19230)
  [ty] Ecosystem analyzer: parallelize, fix race condition (astral-sh#19252)
  [ty] Add completion kind to playground (astral-sh#19251)
  [ty] Deploy ecosystem diff to Cloudflare pages (astral-sh#19234)
  [ty] Add semantic token provider to playground (astral-sh#19232)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants