Closed cthoyt closed 6 years ago
Use instanceof(X, Y) instead of type(X) is Y to make classes extensible. Reference: https://stackoverflow.com/a/2225066/5775947
instanceof(X, Y)
type(X) is Y
https://github.com/ndexbio/ndex2-client/blob/64d3fad534ce7b41427106d2e9a37b6bfcedaaef/nicecxModel/NiceCXNetwork.py#L95
Changed all type() to isinstance()
Use
instanceof(X, Y)
instead oftype(X) is Y
to make classes extensible. Reference: https://stackoverflow.com/a/2225066/5775947https://github.com/ndexbio/ndex2-client/blob/64d3fad534ce7b41427106d2e9a37b6bfcedaaef/nicecxModel/NiceCXNetwork.py#L95