Closed tsolakoua closed 1 year ago
isinstance() is usually the preferred way to compare types. It's not only faster but also considering inheritance, which is often the desired behavior.
isinstance() is usually the preferred way to compare types. It's not only faster but also considering inheritance, which is often the desired behavior.