Skip to content

Conversation

@UnboundVariable
Copy link
Collaborator

This PR extends the "go to declaration" and "go to definition" functionality to support import statements — both standard imports and "from" import forms.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 19, 2025

mypy_primer results

No ecosystem changes detected ✅
No memory usage changes detected ✅

@MichaReiser MichaReiser added server Related to the LSP server ty Multi-file analysis & type inference labels Jul 19, 2025
UnboundVariable added 4 commits July 19, 2025 09:28
* main:
  [ty] Avoid secondary tree traversal to get call expression for keyword arguments (astral-sh#19429)
  [ty] Add goto definition to playground (astral-sh#19425)
  [ty] Add support for `@warnings.deprecated` (astral-sh#19376)
  [ty] make `del x` force local resolution of `x` in the current scope (astral-sh#19389)

# Conflicts:
#	crates/ty_ide/src/goto.rs
@UnboundVariable UnboundVariable merged commit 0acc273 into astral-sh:main Jul 19, 2025
37 checks passed
@UnboundVariable UnboundVariable deleted the goto_declaration_modules branch July 19, 2025 18:22
dcreager added a commit that referenced this pull request Jul 21, 2025
* main: (25 commits)
  [ty] Sync vendored typeshed stubs (#19461)
  [ty] Extend tuple `__len__` and `__bool__` special casing to also cover tuple subclasses (#19289)
  [ty] bump docstring-adder pin (#19458)
  [ty] Disallow assignment to `Final` class attributes (#19457)
  Update dependency ruff to v0.12.4 (#19442)
  Update pre-commit hook astral-sh/ruff-pre-commit to v0.12.4 (#19443)
  Update rui314/setup-mold digest to 702b190 (#19441)
  Update taiki-e/install-action action to v2.56.19 (#19448)
  Update Rust crate strum_macros to v0.27.2 (#19447)
  Update Rust crate strum to v0.27.2 (#19446)
  Update Rust crate rand to v0.9.2 (#19444)
  Update Rust crate serde_json to v1.0.141 (#19445)
  Fix `unreachable` panic in parser (#19183)
  [`ruff`] Support byte strings (`RUF055`) (#18926)
  [ty] Avoid second lookup for `infer_maybe_standalone_expression` (#19439)
  [ty] Implemented "go to definition" support for import statements (#19428)
  [ty] Avoid secondary tree traversal to get call expression for keyword arguments (#19429)
  [ty] Add goto definition to playground (#19425)
  [ty] Add support for `@warnings.deprecated` (#19376)
  [ty] make `del x` force local resolution of `x` in the current scope (#19389)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

server Related to the LSP server ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants