From ceda7b0732dc1b3ed1e653bb7b82d73f4cc5d0ba Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 19 May 2025 17:22:59 +0200 Subject: [PATCH] Fix global population of parts_of_speech enum --- spacy/parts_of_speech.pyx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spacy/parts_of_speech.pyx b/spacy/parts_of_speech.pyx index 98e3570ec..102d3fe3e 100644 --- a/spacy/parts_of_speech.pyx +++ b/spacy/parts_of_speech.pyx @@ -25,3 +25,9 @@ IDS = { NAMES = {value: key for key, value in IDS.items()} + + +# As of Cython 3.1, the global Python namespace no longer has the enum +# contents by default. +globals().update(IDS) +