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 7cec8a2 commit e541ae6
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions litedoc/syntax/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,42 @@ class FunctionNode(BaseModel):
"__rtruediv__": "/",
"__neg__" : "-",
"__and__" : "&",
"__rand__" : "&",
"__or__" : "|",
"__ror__" : "|",
"__xor__" : "^",
"__rxor__" : "^",
"__lshift__" : "<<",
"__rlshift__" : "<<",
"__rshift__" : ">>",
"__rrshift__" : ">>",
"__getitem__" : "[]",
"__setitem__" : "[] =",
"__delitem__" : "del []",
"__iter__" : "iter",
"__next__" : "next",
"__contains__": "in",
"__len__" : "len",
"__str__" : "str",
"__repr__" : "repr",
"__call__" : "()",
"__enter__" : "with",
"__exit__" : "with",
"__await__" : "await",
"__aiter__" : "aiter",
"__anext__" : "anext",
"__aenter__" : "awith",
"__aexit__" : "awith",
"__hash__" : "hash",
"__eq__" : "==",
"__ne__" : "!=",
"__lt__" : "<",
"__le__" : "<=",
"__gt__" : ">",
"__ge__" : ">=",
"__index__" : "index",
"__round__" : "round",
"__floor__" : "floor"
} # 魔术方法, 例如运算符

def is_private(self):
Expand Down

0 comments on commit e541ae6

Please sign in to comment.