-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
TYP: internals.construction #40154
TYP: internals.construction #40154
Conversation
jbrockmendel
commented
Mar 1, 2021
- closes #xxxx
- tests added / passed
- Ensure all linting tests pass, see here for how to run them
- whatsnew entry
Would it be OK to wait on #39991 for this? |
should be OK |
Thanks, #39991 is merged now |
updated, should fix the mypy complaint that made it into master |
|
||
elif isinstance(data, (np.ndarray, DataFrame)): | ||
arrays, columns = to_arrays(data, columns) | ||
if columns is not None: | ||
columns = ensure_index(columns) |
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.
This is ensured by to_arrays
already?
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.
yes
@@ -91,7 +92,7 @@ def arrays_to_mgr( | |||
dtype: Optional[DtypeObj] = None, | |||
verify_integrity: bool = True, | |||
typ: Optional[str] = None, | |||
): | |||
) -> Union[BlockManager, ArrayManager]: |
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.
There is a typing alias for this union (Manager
, I think)
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.
mind keeping this for a follow-up? id like to get the CI back to green
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.
CI checks are also still failing on this PR
this now gets the code checks passing (just the bs4 thing left) |
Thanks! |