Skip to content

Instantly share code, notes, and snippets.

@gpupo
Last active April 29, 2024 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gpupo/689b1680f606e1124e46c3c80cf32611 to your computer and use it in GitHub Desktop.
Save gpupo/689b1680f606e1124e46c3c80cf32611 to your computer and use it in GitHub Desktop.
Dicas de programação #mirrored

Conjunto de dicas sem pé nem cabeça nem seu cão esguio e o garoto do balão vermelho :)

# Se você tiver uma classe base abstrata com um método estático, a ordem dos decoradores deve ser assim:
#....
@staticmethod
@abstractmethod
def meu_metodo_fancy():
pass
#Se você trocá-los, você receberá AttributeError: attribute '__isabstractmethod__' of 'staticmethod' objects is not writable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment