Skip to content

Instantly share code, notes, and snippets.

@xnuinside
Last active March 19, 2020 22:32
Show Gist options
  • Save xnuinside/10b4276aa33ef39101d6604cb9fd1229 to your computer and use it in GitHub Desktop.
Save xnuinside/10b4276aa33ef39101d6604cb9fd1229 to your computer and use it in GitHub Desktop.
medium_broke_files_from_one_gist (
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