Skip to content

Conversation

@AlexWaygood
Copy link
Member

Summary

  • Remove an unnecessary clone (fixing a TODO in the code)
  • Improve docs for the SitePackagesDiscoveryError enum and rename a few variants
  • Remove SysPrefixPath::new_impl(). The indirection is unnecessary; it can all easily be inlined into SysPrefixPath::new().

Test Plan

Existing tests all pass

@AlexWaygood AlexWaygood added internal An internal refactor or improvement ty Multi-file analysis & type inference labels Jun 3, 2025
@AlexWaygood AlexWaygood enabled auto-merge (squash) June 3, 2025 18:46
@github-actions
Copy link
Contributor

github-actions bot commented Jun 3, 2025

mypy_primer results

No ecosystem changes detected ✅

@AlexWaygood AlexWaygood merged commit 0079cc6 into main Jun 3, 2025
32 checks passed
@AlexWaygood AlexWaygood deleted the alex/site-packages-cleanup branch June 3, 2025 18:49
AlexWaygood added a commit to AlexWaygood/ruff that referenced this pull request Jun 3, 2025
AlexWaygood added a commit to AlexWaygood/ruff that referenced this pull request Jun 3, 2025
carljm added a commit to mtshiba/ruff that referenced this pull request Jun 4, 2025
* main:
  [ty] Add tests for empty list/tuple unpacking (astral-sh#18451)
  [ty] Argument type expansion for overload call evaluation (astral-sh#18382)
  [ty] Minor cleanup for `site-packages` discovery logic (astral-sh#18446)
  [ty] Add generic inference for dataclasses (astral-sh#18443)
  [ty] dataclasses: Allow using dataclasses.dataclass as a function. (astral-sh#18440)
  [ty] Create separate `FunctionLiteral` and `FunctionType` types (astral-sh#18360)
  [ty] Infer `list[T]` when unpacking non-tuple type (astral-sh#18438)
  [ty] Meta-type of type variables should be type[..] (astral-sh#18439)
  [`pyupgrade`] Make fix unsafe if it deletes comments (`UP050`) (astral-sh#18390)
  [`pyupgrade`] Make fix unsafe if it deletes comments (`UP004`) (astral-sh#18393)
  [ty] Support using legacy typing aliases for generic classes in type annotations (astral-sh#18404)
  Use ty's completions in playground (astral-sh#18425)
  Update editor setup docs about Neovim and Vim (astral-sh#18324)
  Update NPM Development dependencies (astral-sh#18423)
AlexWaygood added a commit to AlexWaygood/ruff that referenced this pull request Jun 5, 2025
AlexWaygood added a commit to AlexWaygood/ruff that referenced this pull request Jun 5, 2025
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.

2 participants