Skip to content

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • Ensure all linting tests pass, see here for how to run them
  • whatsnew entry

@jorisvandenbossche
Copy link
Member

Would it be OK to wait on #39991 for this?

@jbrockmendel
Copy link
Member Author

Would it be OK to wait on #39991 for this?

should be OK

@jreback jreback added Constructors Series/DataFrame/Index/pd.array Constructors Typing type annotations, mypy/pyright type checking labels Mar 2, 2021
@jreback jreback added this to the 1.3 milestone Mar 2, 2021
@jorisvandenbossche
Copy link
Member

Thanks, #39991 is merged now

@jbrockmendel
Copy link
Member Author

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)
Copy link
Member

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?

Copy link
Member Author

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]:
Copy link
Member

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)

Copy link
Member Author

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

Copy link
Member

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

@jbrockmendel
Copy link
Member Author

this now gets the code checks passing (just the bs4 thing left)

@jorisvandenbossche jorisvandenbossche merged commit 440a7de into pandas-dev:master Mar 3, 2021
@jorisvandenbossche
Copy link
Member

Thanks!

@jbrockmendel jbrockmendel deleted the typ-reorder_arrays branch March 3, 2021 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Constructors Series/DataFrame/Index/pd.array Constructors Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants