Skip to content

fix default_value for kwonlyargs with no default #2261

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

Merged

Conversation

crazybolillo
Copy link
Contributor

Refs #2213.

Requesting the default value for a kwonlyarg with no default would fail with an IndexError, it now correctly raises a NoDefault exception. This issue arised after changes in PR #2240.

Refs pylint-dev#2213.

Requesting the default value for a kwonlyarg with no default would fail with
an IndexError, it now correctly raises a NoDefault exception. This issue
arised after changes in PR pylint-dev#2240.
@crazybolillo crazybolillo force-pushed the post-2240-crazybolillo branch from 5b5dc4b to 2ff25cb Compare July 22, 2023 15:59
@codecov
Copy link

codecov bot commented Jul 22, 2023

Codecov Report

Merging #2261 (2ff25cb) into main (ec912f9) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2261   +/-   ##
=======================================
  Coverage   92.78%   92.78%           
=======================================
  Files          94       94           
  Lines       10949    10951    +2     
=======================================
+ Hits        10159    10161    +2     
  Misses        790      790           
Flag Coverage Δ
linux 92.59% <100.00%> (+<0.01%) ⬆️
pypy 90.89% <100.00%> (+<0.01%) ⬆️
windows 92.37% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
astroid/nodes/node_classes.py 94.81% <100.00%> (+<0.01%) ⬆️

@jacobtylerwalls
Copy link
Member

Thanks!

@jacobtylerwalls jacobtylerwalls merged commit 00d7940 into pylint-dev:main Jul 22, 2023
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