Skip to content

Commit 4c3c826

Browse files
committed
Add type info to options['include_paths']
1 parent 85b564a commit 4c3c826

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

onlinejudge_verify/languages/cplusplus.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ def list_dependencies(self, path: pathlib.Path, *, basedir: pathlib.Path) -> Lis
187187
return _cplusplus_list_depending_files(path.resolve(), CXX=env.CXX, joined_CXXFLAGS=joined_CXXFLAGS)
188188

189189
def bundle(self, path: pathlib.Path, *, basedir: pathlib.Path = pathlib.Path.cwd(), options: Dict[str, Any]) -> bytes:
190-
bundler = Bundler(iquotes=options['include_paths'])
190+
include_paths: List[pathlib.Path] = options['include_paths']
191+
assert isinstance(include_paths, list)
192+
bundler = Bundler(iquotes=include_paths)
191193
bundler.update(path)
192194
return bundler.get()
193195

0 commit comments

Comments
 (0)