Skip to content

Conversation

@alex-semenyuk
Copy link
Contributor

@alex-semenyuk alex-semenyuk commented Aug 13, 2025

fix error messages of dict() and dict().update()

TypeError: dict expected at most 1 positional argument, got 2

TypeError: update expected at most 1 positional argument, got 2

instead of

TypeError: dict expected at most 1 argument, got 2

TypeError: update expected at most 1 argument, got 2

@alex-semenyuk alex-semenyuk marked this pull request as ready for review August 16, 2025 07:25
@serhiy-storchaka
Copy link
Member

I do not think that special casing "dict" and "dict.update" is an appropriate solution. There are many other cases, and we should also think about third-party code. This is a larger issue.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants