Skip to content

Commit a1ab18f

Browse files
committed
Add types.{FunctionType,LambdaType}.__get__ to stubtest_allowlist
1 parent 5278258 commit a1ab18f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/stubtest_allowlists/py3_common.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ pydoc.Helper.symbols_ # Loop variable in class https://github.com/python/typesh
270270
pydoc.Helper.topic # Loop variable in class https://github.com/python/typeshed/issues/6401#issuecomment-981178522
271271
# Dynamically specified by __getattr__, and thus don't exist on the class
272272
tempfile._TemporaryFileWrapper.[\w_]+
273+
# stubtest incorrectly highlights the type argument as not having a default value.
274+
types.FunctionType.__get__
275+
types.LambdaType.__get__
273276
# Various classes in typing aren't types at runtime. In addition, mypy thinks some special forms are tautologically defined.
274277
typing.[A-Z]\w+
275278
typing_extensions\..*

0 commit comments

Comments
 (0)