add mypy ignore to package cli

This commit is contained in:
thomashacker 2023-02-06 13:18:28 +01:00
parent 896e02e1aa
commit 63cffa6b86
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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.