Skip to content

Conversation

jbrockmendel
Copy link
Member

This adds an assertion to NDFrame.shift that won't be Technically Correct until #53832 is merged.

@mroeschke
Copy link
Member

mypy.......................................................................Failed
- hook id: mypy
- duration: 214.27s
- exit code: 1

pandas/core/internals/blocks.py:1492: error: Incompatible return value type (got "List[Block]", expected "List[Self]")  [return-value]
pandas/core/internals/blocks.py:1497: error: List item 0 has incompatible type "Block"; expected "Self"  [list-item]
Found 2 errors in 1 file (checked 1418 source files)

mypy (stubtest)............................................................Failed
- hook id: stubtest
- duration: 122.98s
- exit code: 1

error: not checking stubs due to mypy build errors:
pandas/core/internals/blocks.py:1492: error: Incompatible return value type (got "List[Block]", expected "List[Self]")  [return-value]
pandas/core/internals/blocks.py:1497: error: List item 0 has incompatible type "Block"; expected "Self"  [list-item]

@mroeschke mroeschke added Refactor Internal refactoring of code Internals Related to non-user accessible pandas implementation labels Jun 26, 2023
@jbrockmendel
Copy link
Member Author

rebased+green

@mroeschke mroeschke added this to the 2.1 milestone Jun 27, 2023
@mroeschke mroeschke merged commit 9d676a9 into pandas-dev:main Jun 27, 2023
@mroeschke
Copy link
Member

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the ref-ea-axis branch June 27, 2023 17:26
Daquisu pushed a commit to Daquisu/pandas that referenced this pull request Jul 8, 2023
* REF: remove axis keyword from Manager/Block.shift

* mypy fixup

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

Labels

Internals Related to non-user accessible pandas implementation Refactor Internal refactoring of code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants