Commit 642ef16
authored
Fixes mypy attribute issue in io/parquet by adding a hasattr check (#45570)
* Fixes mypy attribute issue in io/parquet by adding a hasattr check
* changed attr to name attribute inside raw
* combined the conditional checks on io.BufferedWriter in io/parquet
* changed attribute from raw.name to name and added hasattr check
* Skipped checks for graceful cleanup in windows
* Changed checks for path object in parquet, linted and sorted imports
* Removed sys dependency and changed pytest check for windows
* Changed the condition in io/parquet to hasattr from isinstance of io.FileIO
* Changed the pytest skip condition to decorator and added a message
* Changed pytest skipif to mark.xfail1 parent 4f712c1 commit 642ef16
2 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
185 | 189 | | |
186 | 190 | | |
187 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
728 | 729 | | |
729 | 730 | | |
730 | 731 | | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
731 | 739 | | |
732 | 740 | | |
733 | 741 | | |
| |||
0 commit comments