Skip to content

Conversation

@drculhane
Copy link
Contributor

@drculhane drculhane commented Dec 26, 2025

Closes #5171

@drculhane drculhane marked this pull request as ready for review January 13, 2026 14:55
@codecov-commenter
Copy link

codecov-commenter commented Jan 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@153073d). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #5224   +/-   ##
========================================
  Coverage        ?   100.00%           
========================================
  Files           ?         4           
  Lines           ?        63           
  Branches        ?         0           
========================================
  Hits            ?        63           
  Misses          ?         0           
  Partials        ?         0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.



@overload
def create_pdarray(repMsg: str, max_bits: None = ...) -> pdarray: ...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use rep_msg instead of repMsg to match pep8.


@overload
def create_pdarray(repMsg: memoryview, max_bits: int) -> pdarray: ...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The overloads could be collapsed to 2 like this:

@overload
def create_pdarray(rep_msg: str, max_bits: int | None = ...) -> pdarray: ...

@overload
def create_pdarray(rep_msg: memoryview, max_bits: int | None = ...) -> pdarray: ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

rep_msg : str
space-delimited string containing the pdarray name, datatype, size
dimension, shape,and itemsize
repMsg : str, memoryview
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, this should be rep_msg.

repMsg : str, memoryview
a space-delimited response from the arkouda server describing a newly
created array. The message encodes, in order, the array name, dtype,
total size, rank, shape, and itemsize. If provides as a memoryview,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should say "provided" rather than "provides"

total size, rank, shape, and itemsize. If provides as a memoryview,
it will be decoded to a UTF-8 string before parsing.
max_bits: int, otional
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you mean "optional" rather than "otional".

"""
Return a pdarray instance pointing to an array created by the arkouda server.
The user should not call this function directly.
This intended for internal use only. The user should not call this function
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"This is intended" instead of "This indended".

Copy link
Contributor

@ajpotts ajpotts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Copy link
Contributor

@jaketrookman jaketrookman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides the small formatting and grammar changes, looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

overloads to create_pdarray

4 participants