-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Open
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-argument-clinictype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
I found this while working on python/typeshed#9987 I've noticed that most of the functions inside sys do have __text_signature__. While sys.getsizeof doesn't.
>>> import sys
>>> sys.addaudithook.__text_signature__
'($module, /, hook)'
>>> sys.getsizeof.__text_signature__I think this is not a planned feature. This is the artifact of times when NULL was not supported as a default value by AC. See original review comment #11328 (comment)
I think that this should be fixed. I will send a PR with this function converted, it take a very minimal diff to do that.
Linked PRs
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-argument-clinictype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error