How do you get all classes defined in a module but not imported? May 3, 2023 by Tarik Inspect the __module__ attribute of the class to find out which module it was defined in.