Skip to content

Commit e521e6e

Browse files
committed
Fix filter order
1 parent f676b3d commit e521e6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/stubtest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2432,11 +2432,11 @@ def warning_callback(msg: str) -> None:
24322432
continue
24332433
if args.ignore_disjoint_bases and error.is_disjoint_base_related():
24342434
continue
2435+
if not args.strict_type_check_only and error.is_private_type_check_only_related():
2436+
continue
24352437
if error.object_desc in allowlist:
24362438
allowlist[error.object_desc] = True
24372439
continue
2438-
if not args.strict_type_check_only and error.is_private_type_check_only_related():
2439-
continue
24402440
is_allowlisted = False
24412441
for w in allowlist:
24422442
if allowlist_regexes[w].fullmatch(error.object_desc):

0 commit comments

Comments
 (0)