Skip to content

Commit

Permalink
Correct typo in docstring (int -> float) (#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 committed Mar 19, 2022
1 parent c6e9065 commit eb22e12
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 eb22e12

Please sign in to comment.