ITADN

Keep completion for `argparse.Namespace` from appending "_"

#2078Opencdjameson 创建于 2025-11-06
C
cdjamesoncommented
I was reading https://github.com/davidhalter/jedi/issues/1980, and while I certainly understand the limitations from implementing a full solution, I was wondering if it would be sufficiently trivial to hard-code a specific exception that would keep Jedi (jedi-vim in this case) from adding the leading underscore "_"? That would be a nice quality-of-life improvement so I can at least use the nice flow of "autocomplete and start typing my own thing" rather than "jedi is getting in my way". There's probably some shared blame for `argparse` itself and how its API is structured; what if it had even 1 public attribute (or I guess 2 that don't have the same starting character)? But I didn't really take time to explore that and figured I could toss this out there and see if it was sufficiently simple. Thanks for your understanding!
0 条评论