feat: enhance assert casting

This commit is contained in:
Shunsuke Shibayama 2023-04-16 23:32:52 +09:00
parent 5eb680cb21
commit 839133863f
9 changed files with 96 additions and 149 deletions

View file

@ -1407,6 +1407,7 @@ impl Call {
"import" => Some(OperationKind::Import),
"pyimport" | "py" | "__import__" => Some(OperationKind::PyImport),
"Del" => Some(OperationKind::Del),
"assert" => Some(OperationKind::Assert),
_ => {
if self.obj.ref_t().is_callable() {
match self.attr_name.as_ref().map(|i| &i.inspect()[..]) {