From 1a810033bb65790af48ebdd2f1f8944d28400fb2 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Tue, 3 Sep 2024 08:29:56 -0400 Subject: [PATCH] Add type annotation for VCRuntimeRedist and update the docstring to reflect the behavior. --- setuptools/msvc.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/setuptools/msvc.py b/setuptools/msvc.py index b9fdf6836b..a7fb8d30b6 100644 --- a/setuptools/msvc.py +++ b/setuptools/msvc.py @@ -1375,14 +1375,11 @@ def FSharp(self): return [self.si.FSharpInstallDir] @property - def VCRuntimeRedist(self): + def VCRuntimeRedist(self) -> str | None: """ Microsoft Visual C++ runtime redistributable dll. - Return - ------ - str - path + Returns the first suitable path found or None. """ vcruntime = 'vcruntime%d0.dll' % self.vc_ver arch_subdir = self.pi.target_dir(x64=True).strip('\\')