8000 CLN: assorted cleanups by jbrockmendel · Pull Request #30575 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

CLN: assorted cleanups #30575

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

Merged
merged 17 commits into from
Dec 31, 2019
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
revert bc mypy doesnt know about warnings.warn
  • Loading branch information
jbrockmendel committed Dec 30, 2019
commit e70b940a7d657171089822da02c1b826070b54d7
4 changes: 2 additions & 2 deletions pandas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
# TODO: remove Panel compat in 1.0
if pandas.compat.PY37:

def __getattr__(name: str):
def __getattr__(name):
import warnings

if name == "Panel":
Expand Down Expand Up @@ -256,7 +256,7 @@ def __init__(self):
self.np = np
self.warnings = warnings

def __getattr__(self, item: str):
def __getattr__(self, item):
self.warnings.warn(
"The pandas.np module is deprecated "
"and will be removed from pandas in a future version. "
Expand Down
0