follow PEP585 typing (#767)

Signed-off-by: Qingpeng Li <qingpeng9802@gmail.com>
This commit is contained in:
Qingpeng Li
2023-09-19 14:41:02 +08:00
committed by GitHub
parent 9f59c572b5
commit 7cbe284fcf
4 changed files with 8 additions and 8 deletions

View File

@ -29,7 +29,7 @@
"""类"""
def __init__(self, x: int):
self.val: int = x # 节点值
self.next: Optional[Node] = None # 指向下一节点的引用
self.next: Node | None = None # 指向下一节点的引用
def function() -> int:
"""函数"""