Skip to content

Commit

Permalink
Add type annotation for VCRuntimeRedist and update the docstring to r…
Browse files Browse the repository at this point in the history
…eflect the behavior.
  • Loading branch information
jaraco committed Sep 3, 2024
1 parent f4adb80 commit 1a81003
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions setuptools/msvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('\\')
Expand Down

0 comments on commit 1a81003

Please sign in to comment.