Skip to content

Remove useless overloads from sys.getsizeof#9987

Merged
AlexWaygood merged 2 commits into
mainfrom
simplify-sys-getsizeof
Mar 30, 2023
Merged

Remove useless overloads from sys.getsizeof#9987
AlexWaygood merged 2 commits into
mainfrom
simplify-sys-getsizeof

Conversation

@sobolevn

Copy link
Copy Markdown
Member

There's no need to use @overload, because signature is simple enough.

Btw, I am preparing a PR to CPython to convert this function to AC, so __text_signature__ will be available :)

@srittau srittau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, this doesn't really have a default value, so ... is fine here.

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants