mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-05 12:50:20 +03:00
add mypy ignore to package cli
This commit is contained in:
parent
896e02e1aa
commit
63cffa6b86
|
@ -243,10 +243,10 @@ def get_third_party_dependencies(
|
|||
for func_name in func_names:
|
||||
# Try the lang-specific version and fall back
|
||||
try:
|
||||
func_info = util.registry.find(reg_name, lang + "." + func_name)
|
||||
func_info = util.registry.find(reg_name, lang + "." + func_name) # type: ignore
|
||||
except RegistryError:
|
||||
try:
|
||||
func_info = util.registry.find(reg_name, func_name)
|
||||
func_info = util.registry.find(reg_name, func_name) # type: ignore
|
||||
except RegistryError as regerr:
|
||||
# lang-specific version being absent is not actually an issue
|
||||
raise regerr from None
|
||||
|
|
|
@ -146,7 +146,7 @@ class registry(thinc.registry):
|
|||
@classmethod
|
||||
def find(
|
||||
cls, registry_name: str, func_name: str
|
||||
) -> Dict[str, Optional[Union[str, int]]]: # type: ignore
|
||||
) -> Dict[str, Optional[Union[str, int]]]:
|
||||
"""Find the information about a registered function, including the
|
||||
module and path to the file it's defined in, the line number and the
|
||||
docstring, if available.
|
||||
|
|
Loading…
Reference in New Issue
Block a user