From 4c204059fe2d287368b87824e2099d4b90a244a6 Mon Sep 17 00:00:00 2001 From: Patrick Hoefler <61934744+phofl@users.noreply.github.com> Date: Thu, 25 Aug 2022 23:37:56 +0200 Subject: [PATCH] Backport PR #48240: Fix mypy erroring on backport branches --- doc/source/development/contributing_codebase.rst | 6 +++++- scripts/run_stubtest.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/source/development/contributing_codebase.rst b/doc/source/development/contributing_codebase.rst index bc85a54e61f22..15931a1a3eb83 100644 --- a/doc/source/development/contributing_codebase.rst +++ b/doc/source/development/contributing_codebase.rst @@ -265,7 +265,11 @@ pandas uses `mypy `_ and `pyright =1.22.0) is required for type validation. diff --git a/scripts/run_stubtest.py b/scripts/run_stubtest.py index cea9665e649d6..8cf5b81ba398c 100644 --- a/scripts/run_stubtest.py +++ b/scripts/run_stubtest.py @@ -9,7 +9,7 @@ import pandas as pd # fail early if pandas is not installed -if "dev" not in getattr(pd, "__version__", ""): +if not getattr(pd, "__version__", ""): # fail on the CI, soft fail during local development warnings.warn("You need to install the development version of pandas") if pd.compat.is_ci_environment():