fintech-hub / bancocentralbrasil

💵 💰 :brazil: Informações sobre taxas oficiais diárias de Inflação, Selic, Poupança, Dólar, Dólar PTAX, Euro e Euro PTAX pelo site do Banco Central do Brasil
http://www.bcb.gov.br
MIT License
123 stars 33 forks source link

(PYL-R0201) No use of `self` #30

Closed leogregianin closed 3 years ago

leogregianin commented 3 years ago

Description

The method doesn't use its bound instance. Decorate this method with @staticmethod decorator, so that Python does not have to instantiate a bound method for every instance of this class thereby saving memory and computation. Read more about staticmethods here.

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/open-bacen/bancocentralbrasil/issue/PYL-R0201/occurrences/

leogregianin commented 3 years ago

Fixed https://github.com/open-bacen/bancocentralbrasil/commit/e030bc4a36135151e49351660eb4cc3c5d3b2552