def PIE800(lineno: int, col_offset: int) -> Error: return Error( lineno=lineno, col_offset=col_offset, message= "PIE800: no-unnecessary-spread: Consider inlining the dict values.", )
def PIE805(lineno: int, col_offset: int) -> Error: return Error( lineno=lineno, col_offset=col_offset, message= "PIE805: prefer-literal: Prefer the byte string literal rather than calling encode.", )
def err(lineno: int, col_offset: int) -> Error: return Error( lineno=lineno, col_offset=col_offset, message="PIE807: prefer-list-builtin: use the builtin list type instead of a lambda.", )
def PIE806(lineno: int, col_offset: int) -> Error: return Error( lineno=lineno, col_offset=col_offset, message="PIE806: no-assert-except: Instead of asserting and catching, use an if statment.", )
def to_errors(flake8_err: Iterable[Flake8Error]) -> list[Error]: return [ Error(lineno=err.lineno, col_offset=err.col_offset, message=err.message) for err in flake8_err ]
def err(lineno: int, col_offset: int) -> Error: return Error( lineno=lineno, col_offset=col_offset, message="PIE808: prefer-simple-range: range starts at 0 by default.", )
def err(lineno: int, col_offset: int) -> Error: return Error( lineno=lineno, col_offset=col_offset, message="PIE809: django-prefer-bulk: bulk create multiple objects.", )