amadeus4dev / amadeus-python

Python library for the Amadeus Self-Service travel APIs
https://developers.amadeus.com
MIT License
195 stars 77 forks source link

Replace type() with instance() #175

Closed tsolakoua closed 1 year ago

tsolakoua commented 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.