Skip to content

Commit 941a414

Browse files
authored
stubtest: add class_getitem to dunders to check (python#9609)
1 parent 39e83d1 commit 941a414

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/stubtest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def verify_typeinfo(
245245
return
246246

247247
to_check = set(stub.names)
248-
dunders_to_check = ("__init__", "__new__", "__call__")
248+
dunders_to_check = ("__init__", "__new__", "__call__", "__class_getitem__")
249249
# cast to workaround mypyc complaints
250250
to_check.update(
251251
m for m in cast(Any, vars)(runtime) if m in dunders_to_check or not m.startswith("_")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy