Finalized linting changes

In the fetch_text method (line ~207):
  if not r.encoding:
      r.encoding = "utf-8"  # ← Double quotes!

  In the scrape method, make sure there are 2 blank lines before the next class:
          return None


  class Tekstowo(SearchBackend):  # ← Two blank lines above

  That should pass the formatting check! The repo follows PEP 8 style (double quotes, 2 blank lines between classes).
This commit is contained in:
Francesco Grillo 2025-12-23 22:48:27 +02:00 committed by GitHub
parent b8311915a6
commit 3f56d952da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -204,7 +204,7 @@ class LyricsRequestHandler(RequestHandler):
but default to UTF-8 if not specified
"""
if not r.encoding:
r.encoding = 'utf-8'
r.encoding = "utf-8"
return r.text
def get_json(self, url: str, params: JSONDict | None = None, **kwargs):