Fix type errors

This commit is contained in:
Matthew Honnibal 2025-11-05 10:10:42 +01:00
parent 4ebe774120
commit 68bf84ec5c
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ def download_cli(
DOCS: https://spacy.io/api/cli#download
AVAILABLE PACKAGES: https://spacy.io/models
"""
download(model, direct, sdist, custom_url=url, *ctx.args)
download(model, direct, sdist, url, *ctx.args)
def download(

View File

@ -210,7 +210,7 @@ class Lemmatizer(Pipe):
rules = rules_table.get(univ_pos, {})
orig = string
string = string.lower()
forms = []
forms = [] # type: ignore
oov_forms = []
for old, new in rules:
if string.endswith(old):