Custom Defined Operators Behavior Support #268

Merged
sb10q merged 2 commits from operators into master 2022-04-18 15:31:56 +08:00
Collaborator

fixes #82 by adding support to custom defined behavior operators

fixes #82 by adding support to custom defined behavior operators
ychenfo added 2 commits 2022-04-18 05:04:07 +08:00
sb10q reviewed 2022-04-18 15:23:46 +08:00
@ -960,0 +1007,4 @@
if let TopLevelDef::Class { methods, .. } = &*obj_def {
let mut fun_id = None;
for (name, _, id) in methods.iter() {
if name == &op_name {

Iterator::find

Iterator::find
sb10q reviewed 2022-04-18 15:25:21 +08:00
@ -208,0 +210,4 @@
if matches!(
&stmt.node,
StmtKind::ImportFrom { module, names, .. }
if module == &Some("__future__".into()) && names[0].name == "annotations".into()

this also allows ... import annotations, some_other_thing

this also allows ``... import annotations, some_other_thing``
sb10q merged commit 44199781dc into master 2022-04-18 15:31:56 +08:00
sb10q deleted branch operators 2022-04-18 15:31:57 +08:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nac3#268
There is no content yet.