Skip to content

Commit

Permalink
✨ 新增一些逻辑运算符
Browse files Browse the repository at this point in the history
  • Loading branch information
snowykami committed Sep 6, 2024
1 parent 0dddf4e commit 7cec8a2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions litedoc/syntax/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@ class FunctionNode(BaseModel):
"__truediv__" : "/",
"__rtruediv__": "/",
"__neg__" : "-",
"__and__" : "&",
"__or__" : "|",
"__xor__" : "^",
"__lshift__" : "<<",
"__rshift__" : ">>",
"__getitem__" : "[]",
"__setitem__" : "[] =",
} # 魔术方法, 例如运算符

def is_private(self):
Expand Down

0 comments on commit 7cec8a2

Please sign in to comment.