From: martin f. krafft Date: Sat, 10 May 2025 14:53:25 +0000 (+0200) Subject: add TYPE_CHECKING if to Python imap X-Git-Url: https://git.madduck.net/etc/lazyvim.git/commitdiff_plain/572605e041da2ab87be3b97d521aacc50a1267c8?ds=inline add TYPE_CHECKING if to Python imap --- diff --git a/.config/lazyvim/after/ftplugin/python.lua b/.config/lazyvim/after/ftplugin/python.lua index b430f28..4cc925f 100644 --- a/.config/lazyvim/after/ftplugin/python.lua +++ b/.config/lazyvim/after/ftplugin/python.lua @@ -24,5 +24,5 @@ vim.keymap.set("i", "m", [[if __name__ == "__main__":import sys vim.keymap.set( "i", "a", - [[# needed < 3.14 so that annotations aren't evaluatedfrom __future__ import annotations]] + [[# needed < 3.14 so that annotations aren't evaluatedfrom __future__ import annotationsfrom typing import TYPE_CHECKINGif TYPE_CHECKING:pass]] )