mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-05 21:00:19 +03:00
adjust mypy directive
This commit is contained in:
parent
3857825767
commit
790c287f6e
|
@ -252,7 +252,7 @@ def get_third_party_dependencies(
|
|||
raise regerr from None
|
||||
module_name = func_info.get("module") # type: ignore[attr-defined]
|
||||
if module_name: # the code is part of a module, not a --code file
|
||||
modules.add(func_info["module"].split(".")[0]) # type: ignore
|
||||
modules.add(func_info["module"].split(".")[0]) # type: ignore[union-attr]
|
||||
dependencies = []
|
||||
for module_name in modules:
|
||||
if module_name in distributions:
|
||||
|
|
Loading…
Reference in New Issue
Block a user