-
-
Save anonymous/8b4de5e7a09bcdff6858 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
submodules = [ | |
getattr(mod, sname) for sname in dir(mod) | |
if isinstance(getattr(mod, sname), mod.__class__) | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment