mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 04:31:55 +08:00
follow PEP585 typing (#767)
Signed-off-by: Qingpeng Li <qingpeng9802@gmail.com>
This commit is contained in:
@ -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:
|
||||
"""函数"""
|
||||
|
||||
Reference in New Issue
Block a user