Skip to content

Commit

Permalink
Correct typo in docstring (int -> float) (networkx#5398)
Browse files Browse the repository at this point in the history
* Correct typo in docstring (int -> float)

This is based on https://stackoverflow.com/q/71494698/10693596

* Update function.py

* Update function.py
  • Loading branch information
SultanOrazbayev authored and MridulS committed Feb 4, 2023
1 parent 5f0b61b commit 47736ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions networkx/classes/function.py
Expand Up @@ -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
Expand Down

0 comments on commit 47736ff

Please sign in to comment.