fix: apply black

This commit is contained in:
Basile Dura 2023-06-02 09:26:41 +02:00
parent 72e5d6aef4
commit 7a65b493bc
No known key found for this signature in database

View File

@ -1269,8 +1269,10 @@ class Language:
"No 'get_examples' callback provided to 'Language.initialize', creating dummy examples"
)
doc = Doc(self.vocab, words=["x", "y", "z"])
def get_examples():
return [Example.from_dict(doc, {})]
if not hasattr(get_examples, "__call__"):
err = Errors.E930.format(
method="Language.initialize", obj=type(get_examples)