Python: identify_paths() 会默默地接受一个纯字符串,并为每个字符返回一个错误结果
作者: kaluli123123创建于 2026年9月14日更新于 2026年9月14日
Rust/src/magika/magika.py:154:
if isinstance(paths, (str, bytes)) or not isinstance(paths, Sequence):
raise TypeError("Input paths should be of type Sequence[Path]")I have a fix plus a regression test added to the existing test_api_call_with_bad_types and will open a PR shortly.
内容来源: google/magika