From 572605e041da2ab87be3b97d521aacc50a1267c8 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sat, 10 May 2025 16:53:25 +0200 Subject: [PATCH] add TYPE_CHECKING if to Python imap --- .config/lazyvim/after/ftplugin/python.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]] ) -- 2.39.5