mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-19 00:37:02 +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
|
||||
"""
|
||||
|
||||
def __init__(self, data: int):
|
||||
def __init__(self, data: int) -> None:
|
||||
self.data = data
|
||||
self.next: Node | None = None
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user