Last active
March 19, 2020 22:32
-
-
Save xnuinside/10b4276aa33ef39101d6604cb9fd1229 to your computer and use it in GitHub Desktop.
medium_broke_files_from_one_gist (
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
class MySuperMeta(type): | |
def __call__(cls, *args, **kwargs): | |
print(f'Do you need an instance of {cls}?') | |
return super(MySuperMeta, cls).__call__(*args, **kwargs) | |
class A(metaclass=MySuperMeta): | |
pass | |
a = A() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment