From eb22e121816896ec0664c41a0232e2f80a259b96 Mon Sep 17 00:00:00 2001 From: Sultan Orazbayev Date: Sat, 19 Mar 2022 07:02:26 +0600 Subject: [PATCH] Correct typo in docstring (int -> float) (#5398) * Correct typo in docstring (int -> float) This is based on https://stackoverflow.com/q/71494698/10693596 * Update function.py * Update function.py --- networkx/classes/function.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/networkx/classes/function.py b/networkx/classes/function.py index 61cead315f7..6b9027fcfc9 100644 --- a/networkx/classes/function.py +++ b/networkx/classes/function.py @@ -1288,8 +1288,8 @@ def path_weight(G, path, weight): Returns ------- - cost: int - A integer representing the total cost with respect to the + cost: int or float + An integer or a float representing the total cost with respect to the specified weight of the specified path Raises