Custom Defined Operators Behavior Support #268
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#268
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "operators"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
fixes #82 by adding support to custom defined behavior operators
@ -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
@ -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