@staticmethod
PYL-R020180 raise ValueError("Unrecognized browser argument %s" % browser)
81
82
83 def board_exists(self, board: str):84 req = urlopen(urljoin(default_site, "boards.json")) # skipcq: BAN-B310
85 boards = json.load(req)['boards']
86 for entry in boards:
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.