mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-27 17:06:44 +00:00
Add return type hint
This commit is contained in:
parent
4c53ee9d75
commit
42a1f27126
@ -15,7 +15,7 @@ class Node:
|
|||||||
1 2 3 4
|
1 2 3 4
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, data: int):
|
def __init__(self, data: int) -> None:
|
||||||
self.data = data
|
self.data = data
|
||||||
self.next: Node | None = None
|
self.next: Node | None = None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user