Enable redundant-self mypy error code (#11056)

This commit is contained in:
Nikita Sobolev authored and GitHub committed 2023-11-22 10:13:17 +00:00
1 parent d232def6b2
commit 06d0151b25
3 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -233,7 +233,7 @@ if sys.version_info >= (3, 8):
def make(cls, source: ZipFile) -> CompleteDirs: ...
@overload
@classmethod
def make(cls: type[Self], source: StrPath | IO[bytes]) -> Self: ...
def make(cls, source: StrPath | IO[bytes]) -> Self: ...
class Path:
root: CompleteDirs
+2
View File
@@ -268,6 +268,8 @@ def run_mypy(
"--allow-subclassing-any",
"--enable-error-code",
"ignore-without-code",
"--enable-error-code",
"redundant-self",
"--config-file",
temp.name,
]
+2
View File
@@ -63,6 +63,8 @@ def run_mypy_as_subprocess(directory: str, platform: str, version: str) -> Retur
"possibly-undefined",
"--enable-error-code",
"redundant-expr",
"--enable-error-code",
"redundant-self",
"--custom-typeshed-dir",
".",
]