Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f3379c3

Browse files
committedJan 2, 2025·
Update type hints for Python 3.9+ compatibility
1 parent e95c476 commit f3379c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎dynamic_programming/travelling_salesman.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import List, Tuple
22

33

4-
def tsp_dp(distances: List[List[float]]) -> Tuple[float, List[int]]:
4+
def tsp_dp(distances: list[list[float]]) -> tuple[float, list[int]]:
55
"""
66
Solves Traveling Salesman Problem using dynamic programming.
77

0 commit comments

Comments
 (0)
Please sign in to comment.