Closed deepsource-autofix[bot] closed 1 month ago
You can pass a tuple of types you want to check as the second argument to isinstance. If the object matches with any of the types, it will return True else False.
isinstance
True
False
You can pass a tuple of types you want to check as the second argument to
isinstance
. If the object matches with any of the types, it will returnTrue
elseFalse
.