Skip to content

Commit 1a81003

Browse files
committed
Add type annotation for VCRuntimeRedist and update the docstring to reflect the behavior.
1 parent f4adb80 commit 1a81003

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

setuptools/msvc.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,14 +1375,11 @@ def FSharp(self):
13751375
return [self.si.FSharpInstallDir]
13761376

13771377
@property
1378-
def VCRuntimeRedist(self):
1378+
def VCRuntimeRedist(self) -> str | None:
13791379
"""
13801380
Microsoft Visual C++ runtime redistributable dll.
13811381
1382-
Return
1383-
------
1384-
str
1385-
path
1382+
Returns the first suitable path found or None.
13861383
"""
13871384
vcruntime = 'vcruntime%d0.dll' % self.vc_ver
13881385
arch_subdir = self.pi.target_dir(x64=True).strip('\\')

0 commit comments

Comments
 (0)