-
Notifications
You must be signed in to change notification settings - Fork 16
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
Remove deprecated use of count as positional arg #62
base: main
Are you sure you want to change the base?
Remove deprecated use of count as positional arg #62
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
breaks pylint
scripts/generate_test_code.py
Outdated
@@ -762,7 +762,7 @@ def escaped_split(inp_str, split_char): | |||
raise ValueError('Expected split character. Found string!') | |||
out = re.sub(r'(\\.)|' + split_char, | |||
lambda m: m.group(1) or '\n', inp_str, | |||
len(inp_str)).split('\n') | |||
count = len(inp_str)).split('\n') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
count = len(inp_str)).split('\n') | |
count=len(inp_str)).split('\n') |
otherwise pylint will complain
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Until we have a CI in the framework repository, please at least run directly relevant tests. Here, at least check-python-files.sh
(in a CI-like venv), and make tests
.
Python 13 requires count to be passed as a kwarg rather than a positional arg because of potential confusion with flags, see python/cpython#56166 Signed-off-by: Paul Elliott <[email protected]>
03b11fb
to
59ec32a
Compare
No intended change in functionality. Just removing the deprecated warning I am getting every time I generate test code.
Python 13 requires count to be passed as a kwarg rather than a positional arg because of potential confusion with flags, see python/cpython#56166