Skip to content

Failed to load hook pylsp_completions: 'NoneType' object has no attribute 'type' when working with Numpy 1.23 #243

Closed
@jhossbach

Description

@jhossbach

Hey,
I am currently getting the error Failed to load hook pylsp_completions: 'NoneType' object has no attribute 'type' when I import numpy and try to trigger autocompletion. I think as a result I don't receive any autocompletion options for numpy, but for any submodules such as numpy.testing this works again.
I am not sure how to debug this, any ideas are welcome. My pylsp version is v1.4.1, I am using neovim v0.8.0-dev+595-g95c65a6b22. As config option I pass

	pylsp = {
	    configurationSources = { "flake8" },
	    plugins = {
		pyflakes = {enabled = false},
		pylint = {enabled = false},
		yapf = {enabled = false},
		black = {enabled = true},
		flake8 = {enabled = true},
		pycodestyle = {enabled = false},
		mccabe = {enabled = false},
		pydocstyle = {enabled = true},
	    }
	}

to pylsp.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions