Skip to content

[SPARK-40559][PYTHON][FOLLOW-UP] Fix linter for getfullargspec - #44141

Closed
HyukjinKwon wants to merge 1 commit into
apache:masterfrom
HyukjinKwon:SPARK-40559-followup2
Closed

HyukjinKwon wants to merge 1 commit into
apache:masterfrom
HyukjinKwon:SPARK-40559-followup2

Conversation

@HyukjinKwon

@HyukjinKwon HyukjinKwon commented Dec 4, 2023 •

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

This PR proposes to use inspect.getfullargspec instead of unimported getfullargspec. This PR is a followup of #38624.

Why are the changes needed?

To recover the CI.

It fails as below:

./python/pyspark/worker.py:749:19: F821 undefined name 'getfullargspec'
        argspec = getfullargspec(chained_func)  # signature was lost when wrapping it
                  ^
./python/pyspark/worker.py:757:19: F8[21](https://github.com/apache/spark/actions/runs/7080907452/job/19269484124#step:21:22) undefined name 'getfullargspec'
        argspec = getfullargspec(chained_func)  # signature was lost when wrapping it

https://github.com/apache/spark/actions/runs/7080907452/job/19269484124

It was caused by the logical conflict w/ f5e4e84

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Manually tested via linter-python.

Was this patch authored or co-authored using generative AI tooling?

No.

@HyukjinKwon HyukjinKwon changed the title [SPARK-40559][PYTHON] Fix linter for getfullargspec [SPARK-40559][PYTHON][FOLLOW-UP] Fix linter for getfullargspec Dec 4, 2023
@HyukjinKwon

Copy link
Copy Markdown
Member Author

Merged to master.

asl3 pushed a commit to asl3/spark that referenced this pull request Dec 5, 2023
### What changes were proposed in this pull request?

This PR proposes to use `inspect.getfullargspec` instead of unimported `getfullargspec`. This PR is a followup of apache#38624.

### Why are the changes needed?

To recover the CI.

It fails as below:

```
./python/pyspark/worker.py:749:19: F821 undefined name 'getfullargspec'
        argspec = getfullargspec(chained_func)  # signature was lost when wrapping it
                  ^
./python/pyspark/worker.py:757:19: F8[21](https://github.com/apache/spark/actions/runs/7080907452/job/19269484124#step:21:22) undefined name 'getfullargspec'
        argspec = getfullargspec(chained_func)  # signature was lost when wrapping it
```

https://github.com/apache/spark/actions/runs/7080907452/job/19269484124

It was caused by the logical conflict w/ apache@f5e4e84

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Manually tested via `linter-python`.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#44141 from HyukjinKwon/SPARK-40559-followup2.

Authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
dbatomic pushed a commit to dbatomic/spark that referenced this pull request Dec 11, 2023
### What changes were proposed in this pull request?

This PR proposes to use `inspect.getfullargspec` instead of unimported `getfullargspec`. This PR is a followup of apache#38624.

### Why are the changes needed?

To recover the CI.

It fails as below:

```
./python/pyspark/worker.py:749:19: F821 undefined name 'getfullargspec'
        argspec = getfullargspec(chained_func)  # signature was lost when wrapping it
                  ^
./python/pyspark/worker.py:757:19: F8[21](https://github.com/apache/spark/actions/runs/7080907452/job/19269484124#step:21:22) undefined name 'getfullargspec'
        argspec = getfullargspec(chained_func)  # signature was lost when wrapping it
```

https://github.com/apache/spark/actions/runs/7080907452/job/19269484124

It was caused by the logical conflict w/ apache@f5e4e84

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Manually tested via `linter-python`.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#44141 from HyukjinKwon/SPARK-40559-followup2.

Authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
@HyukjinKwon
HyukjinKwon deleted the SPARK-40559-followup2 branch January 15, 2024 00:50
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.

1 participant