From d184f9e602c1144e62be81718e3428192a1a096a Mon Sep 17 00:00:00 2001 From: "codeflash-ai[bot]" <148906541+codeflash-ai[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 23:28:53 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20Speed=20up=20method=20`Con?= =?UTF-8?q?text.find=5Froot`=20by=2017%=20###=20Explanation=20of=20Changes?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/click/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/click/core.py b/src/click/core.py index 1c1a46714..57677c272 100644 --- a/src/click/core.py +++ b/src/click/core.py @@ -633,7 +633,7 @@ def command_path(self) -> str: def find_root(self) -> Context: """Finds the outermost context.""" node = self - while node.parent is not None: + while node.parent: node = node.parent return node