mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-05 21:00:19 +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:
|
for func_name in func_names:
|
||||||
# Try the lang-specific version and fall back
|
# Try the lang-specific version and fall back
|
||||||
try:
|
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:
|
except RegistryError:
|
||||||
try:
|
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:
|
except RegistryError as regerr:
|
||||||
# lang-specific version being absent is not actually an issue
|
# lang-specific version being absent is not actually an issue
|
||||||
raise regerr from None
|
raise regerr from None
|
||||||
|
|
|
@ -146,7 +146,7 @@ class registry(thinc.registry):
|
||||||
@classmethod
|
@classmethod
|
||||||
def find(
|
def find(
|
||||||
cls, registry_name: str, func_name: str
|
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
|
"""Find the information about a registered function, including the
|
||||||
module and path to the file it's defined in, the line number and the
|
module and path to the file it's defined in, the line number and the
|
||||||
docstring, if available.
|
docstring, if available.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user