Fix pandas API usages · scijava/scyjava@280b622 · GitHub
Skip to content

Commit 280b622

Browse files
ctruedenclaude
andcommitted
Fix pandas API usages
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 11deca3 commit 280b622

3 files changed

Lines changed: 57 additions & 37 deletions

File tree

src/scyjava/_convert.py

Lines changed: 48 additions & 30 deletions

tests/test_introspect.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ def test_jreflect_ctors(self):
5353
arraylist_Obj = scyjava.jreflect(ArrayList, "constructors")
5454
assert len(str_Obj) == len(arraylist_Obj) == 3
5555
arraylist_Obj.sort(
56-
key=lambda row: f"{row['type']}:{row['name']}:{','.join(str(row['arguments']))}"
56+
key=lambda row: (
57+
f"{row['type']}:{row['name']}:{','.join(str(row['arguments']))}"
58+
)
5759
)
5860
assert arraylist_Obj == [
5961
{

tests/test_pandas.py

Lines changed: 6 additions & 6 deletions

0 commit comments

Comments
 (0)