-
Notifications
You must be signed in to change notification settings - Fork 280
Labels
help wantedLarger than "good first issue", but still well-defined and ready for someone to pick upLarger than "good first issue", but still well-defined and ready for someone to pick uplanguage-serverIssues specific to our IDE integration rather than type checkingIssues specific to our IDE integration rather than type checking
Description
Describe the Bug
Hey!
I've been trying out Pyrefly, and really hoping this becomes my daily driver. However, I've noticed some issues when doing basic inheritance. The members from the Parent class aren't suggested/recognized when declaring/overriding them from a subclass.
I've set up a sandbox with a minimal example.
Neovim version:
NVIM v0.11.5
Build type: Release
LuaJIT 2.1.1763318511
Run "nvim -V1 -v" for more info
Python version: 3.12.13
Pyrefly version from Mason:
◍ pyrefly (keywords: python)
Pyrefly, a faster Python type checker written in Rust
installed version 0.52.0
installed purl pkg:pypi/pyrefly@0.52.0
homepage https://pyrefly.org/
languages Python
categories Linter, LSP
executables pyrefly
The pyrefly lsp configuration file:
local ok, blink = pcall(require, "blink.cmp")
if not ok then
return {}
end
local capabilities = blink.get_lsp_capabilities()
---@brief
---
--- https://pyrefly.org/
---
---`pyrefly`, a faster Python type checker written in Rust.
--
-- `pyrefly` is still in development, so please report any errors to
-- our issues page at https://github.com/facebook/pyrefly/issues.
---@type vim.lsp.Config
return {
capabilities = capabilities,
cmd = { "pyrefly", "lsp" },
filetypes = { "python" },
root_markers = {
"pyrefly.toml",
"pyproject.toml",
"setup.py",
"setup.cfg",
"requirements.txt",
"Pipfile",
".git",
},
on_exit = function(code, _, _)
vim.notify("Closing Pyrefly LSP exited with code: " .. code, vim.log.levels.INFO)
end,
}Hope this helps, if you need more info, let me know :)
Sandbox Link
(Only applicable for extension issues) IDE Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
help wantedLarger than "good first issue", but still well-defined and ready for someone to pick upLarger than "good first issue", but still well-defined and ready for someone to pick uplanguage-serverIssues specific to our IDE integration rather than type checkingIssues specific to our IDE integration rather than type checking