print("Is test_int integer? : " + str(isinstance(test_int, int))) print("Is test_int string? : " + str(isinstance(test_int, str))) print("Is test_list integer ...
IMO, it's really unfortunate that Python 3.10 added support for unions in isinstance. A "union" operator applies only to sets of types and therefore should be used only in type expressions. This is ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results