-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dict.fromkeys
must mark its parameters as pos-only
#121196
Comments
sobolevn
added
type-bug
An unexpected behavior, bug, or error
docs
Documentation in the Doc dir
labels
Jul 1, 2024
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Jul 1, 2024
sobolevn
added a commit
that referenced
this issue
Jul 1, 2024
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jul 1, 2024
…H-121197) (cherry picked from commit 1dc9a4f) Co-authored-by: sobolevn <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jul 1, 2024
…H-121197) (cherry picked from commit 1dc9a4f) Co-authored-by: sobolevn <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jul 1, 2024
…H-121197) (cherry picked from commit 1dc9a4f) Co-authored-by: sobolevn <[email protected]>
sobolevn
added a commit
that referenced
this issue
Jul 1, 2024
) (#121243) gh-121196: Document `dict.fromkeys` params as pos-only (GH-121197) (cherry picked from commit 1dc9a4f) Co-authored-by: sobolevn <[email protected]>
sobolevn
added a commit
that referenced
this issue
Jul 1, 2024
) (#121242) gh-121196: Document `dict.fromkeys` params as pos-only (GH-121197) (cherry picked from commit 1dc9a4f) Co-authored-by: sobolevn <[email protected]>
Akasurde
pushed a commit
to Akasurde/cpython
that referenced
this issue
Jul 3, 2024
noahbkim
pushed a commit
to hudson-trading/cpython
that referenced
this issue
Jul 11, 2024
estyxx
pushed a commit
to estyxx/cpython
that referenced
this issue
Jul 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Here's how it looks now:
From this defitinion I undertand that I can pass
value
as a named keyword, but I can't:I just made this error in a real code: wemake-services/wemake-python-styleguide#2994
Many other definitions in this file use
/
to properly mark positional only parameters. Like:and etc.
So, I will send a PR to add
/
todict.fromkeys
Linked PRs
dict.fromkeys
params as pos-only #121197dict.fromkeys
params as pos-only (GH-121197) #121242dict.fromkeys
params as pos-only (GH-121197) #121243The text was updated successfully, but these errors were encountered: