Skip to content

Commit

Permalink
Merge pull request cupy#8797 from EarlMilktea/fix-mypy-ci
Browse files Browse the repository at this point in the history
Resolve uncaught type warning
  • Loading branch information
kmaehashi authored and chainer-ci committed Dec 9, 2024
1 parent d71237c commit acdadc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install/cupy_builder/_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ def compile_device_code(
- list of remaining (non-device) source files ("*.cpp")
- list of compiled object files for device code ("*.o")
"""
sources_cu, sources_cpp = filter_files_by_extension(
ext.sources, '.cu')
sources = [os.fspath(src) for src in ext.sources]
sources_cu, sources_cpp = filter_files_by_extension(sources, ".cu")
if len(sources_cu) == 0:
# No device code used in this extension.
return ext.sources, []
return sources, []

if sys.platform == 'win32':
compiler = DeviceCompilerWin32(ctx)
Expand Down

0 comments on commit acdadc7

Please sign in to comment.