Skip to content

Comments

[ty] Remove FileLookupError#19323

Merged
dhruvmanila merged 2 commits intomainfrom
dhruv/remove-file-lookup-error
Jul 14, 2025
Merged

[ty] Remove FileLookupError#19323
dhruvmanila merged 2 commits intomainfrom
dhruv/remove-file-lookup-error

Conversation

@dhruvmanila
Copy link
Member

Summary

This PR removes the FileLookupError as it's not really required. The original intention was that this would be returned from the .file lookup to the different handlers but we've since moved the logic of "lookup file and add trace message if file unavailable with the reason" under the file_ok method which all of the handlers use.

@dhruvmanila dhruvmanila added internal An internal refactor or improvement server Related to the LSP server ty Multi-file analysis & type inference labels Jul 14, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jul 14, 2025

mypy_primer results

No ecosystem changes detected ✅
No memory usage changes detected ✅

@dhruvmanila dhruvmanila force-pushed the dhruv/remove-file-lookup-error branch from fa4851b to ebdd700 Compare July 14, 2025 13:31
@dhruvmanila dhruvmanila enabled auto-merge (squash) July 14, 2025 13:32
@dhruvmanila dhruvmanila merged commit 8a217e5 into main Jul 14, 2025
36 checks passed
@dhruvmanila dhruvmanila deleted the dhruv/remove-file-lookup-error branch July 14, 2025 13:35
dcreager added a commit that referenced this pull request Jul 14, 2025
* dcreager/merge-arguments: (223 commits)
  fix docs
  Combine CallArguments and CallArgumentTypes
  [ty] Sync vendored typeshed stubs (#19334)
  [`refurb`] Make example error out-of-the-box (`FURB122`) (#19297)
  [refurb] Make example error out-of-the-box (FURB177) (#19309)
  [ty] ignore errors when reformatting codemodded typeshed (#19332)
  [ty] Provide docstrings for stdlib APIs when hovering over them in an IDE (#19311)
  [ty] Add virtual files to the only project database (#19322)
  Add t-string fixtures for rules that do not need to be modified (#19146)
  [ty] Remove `FileLookupError` (#19323)
  [ty] Fix handling of metaclasses in `object.<CURSOR>` completions
  [ty] Use an interval map for scopes by expression (#19025)
  [ty] List all `enum` members (#19283)
  [ty] Handle configuration errors in LSP more gracefully (#19262)
  [ty] Use python version and path from Python extension (#19012)
  [`pep8_naming`] Avoid false positives on standard library functions with uppercase names (`N802`) (#18907)
  Update Rust crate toml to 0.9.0 (#19320)
  [ty] Fix server version (#19284)
  Update NPM Development dependencies (#19319)
  Update taiki-e/install-action action to v2.56.13 (#19317)
  ...
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 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