|
85 | 85 | from pandas.compat import PYPY |
86 | 86 | from pandas.compat._constants import ( |
87 | 87 | REF_COUNT, |
88 | | - WARNING_CHECK_BROKEN, |
| 88 | + WARNING_CHECK_DISABLED, |
89 | 89 | ) |
90 | 90 | from pandas.compat._optional import import_optional_dependency |
91 | 91 | from pandas.compat.numpy import function as nv |
@@ -7073,7 +7073,7 @@ def fillna( |
7073 | 7073 | """ |
7074 | 7074 | inplace = validate_bool_kwarg(inplace, "inplace") |
7075 | 7075 | if inplace: |
7076 | | - if not PYPY and not WARNING_CHECK_BROKEN: |
| 7076 | + if not PYPY and not WARNING_CHECK_DISABLED: |
7077 | 7077 | if sys.getrefcount(self) <= REF_COUNT: |
7078 | 7078 | warnings.warn( |
7079 | 7079 | _chained_assignment_method_msg, |
@@ -7304,7 +7304,7 @@ def ffill( |
7304 | 7304 | """ |
7305 | 7305 | inplace = validate_bool_kwarg(inplace, "inplace") |
7306 | 7306 | if inplace: |
7307 | | - if not PYPY and not WARNING_CHECK_BROKEN: |
| 7307 | + if not PYPY and not WARNING_CHECK_DISABLED: |
7308 | 7308 | if sys.getrefcount(self) <= REF_COUNT: |
7309 | 7309 | warnings.warn( |
7310 | 7310 | _chained_assignment_method_msg, |
@@ -7444,7 +7444,7 @@ def bfill( |
7444 | 7444 | """ |
7445 | 7445 | inplace = validate_bool_kwarg(inplace, "inplace") |
7446 | 7446 | if inplace: |
7447 | | - if not PYPY and not WARNING_CHECK_BROKEN: |
| 7447 | + if not PYPY and not WARNING_CHECK_DISABLED: |
7448 | 7448 | if sys.getrefcount(self) <= REF_COUNT: |
7449 | 7449 | warnings.warn( |
7450 | 7450 | _chained_assignment_method_msg, |
@@ -7529,7 +7529,7 @@ def replace( |
7529 | 7529 |
|
7530 | 7530 | inplace = validate_bool_kwarg(inplace, "inplace") |
7531 | 7531 | if inplace: |
7532 | | - if not PYPY and not WARNING_CHECK_BROKEN: |
| 7532 | + if not PYPY and not WARNING_CHECK_DISABLED: |
7533 | 7533 | if sys.getrefcount(self) <= REF_COUNT: |
7534 | 7534 | warnings.warn( |
7535 | 7535 | _chained_assignment_method_msg, |
@@ -7892,7 +7892,7 @@ def interpolate( |
7892 | 7892 | inplace = validate_bool_kwarg(inplace, "inplace") |
7893 | 7893 |
|
7894 | 7894 | if inplace: |
7895 | | - if not PYPY and not WARNING_CHECK_BROKEN: |
| 7895 | + if not PYPY and not WARNING_CHECK_DISABLED: |
7896 | 7896 | if sys.getrefcount(self) <= REF_COUNT: |
7897 | 7897 | warnings.warn( |
7898 | 7898 | _chained_assignment_method_msg, |
@@ -8476,7 +8476,7 @@ def clip( |
8476 | 8476 | inplace = validate_bool_kwarg(inplace, "inplace") |
8477 | 8477 |
|
8478 | 8478 | if inplace: |
8479 | | - if not PYPY and not WARNING_CHECK_BROKEN: |
| 8479 | + if not PYPY and not WARNING_CHECK_DISABLED: |
8480 | 8480 | if sys.getrefcount(self) <= REF_COUNT: |
8481 | 8481 | warnings.warn( |
8482 | 8482 | _chained_assignment_method_msg, |
@@ -10086,7 +10086,7 @@ def where( |
10086 | 10086 | """ |
10087 | 10087 | inplace = validate_bool_kwarg(inplace, "inplace") |
10088 | 10088 | if inplace: |
10089 | | - if not PYPY and not WARNING_CHECK_BROKEN: |
| 10089 | + if not PYPY and not WARNING_CHECK_DISABLED: |
10090 | 10090 | if sys.getrefcount(self) <= REF_COUNT: |
10091 | 10091 | warnings.warn( |
10092 | 10092 | _chained_assignment_method_msg, |
@@ -10150,7 +10150,7 @@ def mask( |
10150 | 10150 | ) -> Self | None: |
10151 | 10151 | inplace = validate_bool_kwarg(inplace, "inplace") |
10152 | 10152 | if inplace: |
10153 | | - if not PYPY and not WARNING_CHECK_BROKEN: |
| 10153 | + if not PYPY and not WARNING_CHECK_DISABLED: |
10154 | 10154 | if sys.getrefcount(self) <= REF_COUNT: |
10155 | 10155 | warnings.warn( |
10156 | 10156 | _chained_assignment_method_msg, |
|
0 commit comments