Add comments when subclassing Any (#9732)

This commit is contained in:
Avasam
2023-02-14 08:11:56 -05:00
committed by GitHub
parent c437f5ba06
commit 140bba3425
5 changed files with 13 additions and 2 deletions

View File

@@ -263,7 +263,9 @@ def run_mypy(
# Stub completion is checked by pyright (--allow-*-defs)
"--allow-untyped-defs",
"--allow-incomplete-defs",
"--allow-subclassing-any", # See #9491
# See https://github.com/python/typeshed/pull/9491#issuecomment-1381574946
# for discussion and reasoning to keep "--allow-subclassing-any"
"--allow-subclassing-any",
"--enable-error-code",
"ignore-without-code",
"--config-file",