Consider decorating method with @staticmethod PYL-R0201
Performance
Major
5 months agoa year old
Method doesn't use the class instance and could be converted into a static method
20
21
22class Linter(BaseLinter):  # type: ignore
23    def allow(self, path: str) -> bool:24        """Determine if this path should be linted."""
25        return path.endswith(".py")
26