neovim / pynvim

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

refactor: remove the use of forward references #558

Closed wookayin closed 10 months ago

wookayin commented 11 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.