From 0c8393ef8e873255d144622ef1bd803ea1b7268b Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 16 Apr 2024 12:13:54 +0200 Subject: [PATCH] Fix comment --- spacy/language.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spacy/language.py b/spacy/language.py index da4530f53..2ceca9904 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -2436,8 +2436,7 @@ def _get_instantiated_vocab( resolved_vocab = inst_voc elif inst_voc is not resolved_vocab: warnings.warn(Warnings.W126.format(name=name)) - # This is supposed to only be for the type checker -- - # it should be unreachable + # We should guarantee a vocab from the logic above. assert resolved_vocab is not None return resolved_vocab