Add missing function attributes to builtins.function (#6804)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Joseph Young
2022-01-04 18:41:59 +00:00
committed by GitHub
parent 44f9e36952
commit ff64deb331
3 changed files with 17 additions and 4 deletions

View File

@@ -270,6 +270,9 @@ pydoc.Helper.symbols_ # Loop variable in class https://github.com/python/typesh
pydoc.Helper.topic # Loop variable in class https://github.com/python/typeshed/issues/6401#issuecomment-981178522
# Dynamically specified by __getattr__, and thus don't exist on the class
tempfile._TemporaryFileWrapper.[\w_]+
# stubtest incorrectly highlights the type argument as not having a default value.
types.FunctionType.__get__
types.LambdaType.__get__
# Various classes in typing aren't types at runtime. In addition, mypy thinks some special forms are tautologically defined.
typing.[A-Z]\w+
typing_extensions\..*