Fix invalid noqa comments and poorly formatted type ignores (#11497)

This commit is contained in:
Avasam
2024-02-29 01:27:07 -05:00
committed by GitHub
parent 5e9589dd75
commit c75ecf0bca
21 changed files with 43 additions and 43 deletions
+2 -2
View File
@@ -179,13 +179,13 @@ class OleFileIO:
raise_defects: int = 40,
write_mode: bool = False,
debug: bool = False,
path_encoding: str | None = DEFAULT_PATH_ENCODING, # noqaY011
path_encoding: str | None = DEFAULT_PATH_ENCODING, # noqa: Y011
) -> None: ...
def __del__(self) -> None: ...
def __enter__(self) -> Self: ...
def __exit__(self, *args: object) -> None: ...
def _raise_defect(
self, defect_level: int, message: str, exception_type: type[Exception] = OleFileError # noqaY011
self, defect_level: int, message: str, exception_type: type[Exception] = OleFileError # noqa: Y011
) -> None: ...
def _decode_utf16_str(self, utf16_str: bytes, errors: str = "replace") -> bytes: ...
def open(self, filename: IO[bytes] | bytes | str, write_mode: bool = False) -> None: ...