3 ms·
And you can make it work at runtime too! So as long as you have the right methods and attrs isinstance on your duck-typed object will return true!
by Spivak 5y ago
And you can make it work at runtime too! So as long as you have the right methods and attrs isinstance on your duck-typed object will return true!