neovim / pynvim

Python client and plugin host for Nvim
http://pynvim.readthedocs.io/en/latest/
Apache License 2.0
1.48k stars 118 forks source link

Change the data type of a Buffer so that it works correctly #471

Closed farisachugthai closed 6 months ago

farisachugthai commented 3 years ago

from pynvim.api.buffer import *

Doesn't correctly import Buffer. __all__ is incorrectly defined as a tuple and as a result it tries importing each individual letter instead of the actual class.

In addition, the python reference explicitly defines that __all__ should be a list.

wookayin commented 6 months ago

This already has been fixed by #492 (ac03f5cbfe16), and released as a part of pynvim 0.5.