Merge pull request #566 from epage/numpy

fix(config): Don't correct `NDArray` in Python
This commit is contained in:
Ed Page 2022-09-08 11:49:14 -05:00 committed by GitHub
commit 2e84db3a45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -224,6 +224,20 @@ impl TypeEngineConfig {
..Default::default()
},
});
patterns
.entry("py".into())
.or_insert_with(|| GlobEngineConfig {
extend_glob: Vec::new(),
engine: EngineConfig {
dict: Some(DictConfig {
extend_identifiers: maplit::hashmap! {
"NDArray".into() => "NDArray".into(),
},
..Default::default()
}),
..Default::default()
},
});
patterns
.entry("cert".into())
.or_insert_with(|| GlobEngineConfig {