Skip to content

Commit

Permalink
Merge pull request #566 from epage/numpy
Browse files Browse the repository at this point in the history
fix(config): Don't correct `NDArray` in Python
  • Loading branch information
epage committed Sep 8, 2022
2 parents 3161cd6 + e5e98c3 commit 2e84db3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2e84db3

Please sign in to comment.