From 3f46f5072f219cab5f65507b19a6c78645a4b105 Mon Sep 17 00:00:00 2001 From: Youssef Atef <111428670+Youssef-Atef-20@users.noreply.github.com> Date: Wed, 29 Oct 2025 21:31:58 +0300 Subject: [PATCH] Update _argcomplete.py --- src/_pytest/_argcomplete.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/_pytest/_argcomplete.py b/src/_pytest/_argcomplete.py index 59426ef949e..fcc6f6e5128 100644 --- a/src/_pytest/_argcomplete.py +++ b/src/_pytest/_argcomplete.py @@ -101,6 +101,7 @@ def __call__(self, prefix: str, **kwargs: Any) -> list[str]: if os.environ.get("_ARGCOMPLETE"): try: + import argcomplete import argcomplete.completers except ImportError: sys.exit(-1)