Add return type hint

This commit is contained in:
Hardik Pawar 2024-10-03 11:32:07 +05:30
parent 4c53ee9d75
commit 42a1f27126

View File

@ -15,7 +15,7 @@ class Node:
1 2 3 4
"""
def __init__(self, data: int):
def __init__(self, data: int) -> None:
self.data = data
self.next: Node | None = None