@@ -1323,7 +1323,7 @@ def get_examples():
13231323 # Make sure the config is interpolated so we can resolve subsections
13241324 config = self .config .interpolate ()
13251325 # These are the settings provided in the [initialize] block in the config
1326- I = registry .resolve (config ["initialize" ], schema = ConfigSchemaInit )
1326+ I = registry .resolve (config ["initialize" ], schema = ConfigSchemaInit ) # type: ignore[arg-type]
13271327 before_init = I ["before_init" ]
13281328 if before_init is not None :
13291329 before_init (self )
@@ -1353,7 +1353,7 @@ def get_examples():
13531353 proc .initialize (get_examples , nlp = self , ** p_settings )
13541354 pretrain_cfg = config .get ("pretraining" )
13551355 if pretrain_cfg :
1356- P = registry .resolve (pretrain_cfg , schema = ConfigSchemaPretrain )
1356+ P = registry .resolve (pretrain_cfg , schema = ConfigSchemaPretrain ) # type: ignore[arg-type]
13571357 init_tok2vec (self , P , I )
13581358 self ._link_components ()
13591359 self ._optimizer = sgd
@@ -1823,7 +1823,7 @@ def from_config(
18231823 orig_pretraining = config .pop ("pretraining" , None )
18241824 config ["components" ] = {}
18251825 if auto_fill :
1826- filled = registry .fill (config , validate = validate , schema = ConfigSchema )
1826+ filled = registry .fill (config , validate = validate , schema = ConfigSchema ) # type: ignore[arg-type]
18271827 else :
18281828 filled = config
18291829 filled ["components" ] = orig_pipeline
@@ -1832,7 +1832,7 @@ def from_config(
18321832 filled ["pretraining" ] = orig_pretraining
18331833 config ["pretraining" ] = orig_pretraining
18341834 resolved_nlp = registry .resolve (
1835- filled ["nlp" ], validate = validate , schema = ConfigSchemaNlp
1835+ filled ["nlp" ], validate = validate , schema = ConfigSchemaNlp # type: ignore[arg-type]
18361836 )
18371837 create_tokenizer = resolved_nlp ["tokenizer" ]
18381838 create_vectors = resolved_nlp ["vectors" ]
0 commit comments