From b948f8516cc5e2083092269bb9c6b4a6927ce057 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 4 Apr 2025 22:15:01 +0200 Subject: [PATCH] Remove __init_subclass__ used for deprecation warning (incompatible with cython3) --- spacy/pipeline/pipe.pyx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/spacy/pipeline/pipe.pyx b/spacy/pipeline/pipe.pyx index 72ea7e45a..ea5fc5253 100644 --- a/spacy/pipeline/pipe.pyx +++ b/spacy/pipeline/pipe.pyx @@ -21,13 +21,6 @@ cdef class Pipe: DOCS: https://spacy.io/api/pipe """ - @classmethod - def __init_subclass__(cls, **kwargs): - """Raise a warning if an inheriting class implements 'begin_training' - (from v2) instead of the new 'initialize' method (from v3)""" - if hasattr(cls, "begin_training"): - warnings.warn(Warnings.W088.format(name=cls.__name__)) - def __call__(self, Doc doc) -> Doc: """Apply the pipe to one document. The document is modified in place, and returned. This usually happens under the hood when the nlp object