neovim / pynvim

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

refactor: remove the use of forward references #558

Closed wookayin closed 5 months ago

wookayin commented 6 months ago

With PEP-563 (Postponed evaluation of annotations), we can have a more clean syntax of writing type hints, not using 'forward references' to names that have not been defined yet in the form of string literals.

Note that Python 3.7+ (the minimum python version that is currently supported by pynvim) supports PEP-563.