@property types in_degree out_degree

10 views
Skip to first unread message

Daniel Dimenshtein

unread,
May 4, 2022, 12:56:37 PMMay 4
to networkx-discuss
Hello there networkx!,

In the attached png, you can see that the properties return InDegreeView or OutDegreeView, but it's declared that their return type is int... which is incorrect

If you could adjust the return types to fit the class of the returned element, it would be most helpful and solve Python's type hinting. Currently... it's always throwing me type hint warnings.

Thanks in advance,

Daniel! 

Screen Shot 2022-05-04 at 19.50.50.png
Reply all
Reply to author
Forward
0 new messages