You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/development/contributing_codebase.rst
+27-14
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,7 @@ the ``pandas.util._decorators.deprecate``:
118
118
119
119
from pandas.util._decorators import deprecate
120
120
121
-
deprecate('old_func', 'new_func', '1.1.0')
121
+
deprecate("old_func", "new_func", "1.1.0")
122
122
123
123
Otherwise, you need to do it manually:
124
124
@@ -135,7 +135,7 @@ Otherwise, you need to do it manually:
135
135
Use new_func instead.
136
136
"""
137
137
warnings.warn(
138
-
'Use new_func instead.',
138
+
"Use new_func instead.",
139
139
FutureWarning,
140
140
stacklevel=find_stack_level(),
141
141
)
@@ -179,6 +179,7 @@ The appropriate way to annotate this would be as follows
179
179
180
180
str_type =str
181
181
182
+
182
183
classSomeClass2:
183
184
str: str_type =None
184
185
@@ -190,6 +191,7 @@ In some cases you may be tempted to use ``cast`` from the typing module when you
190
191
191
192
from pandas.core.dtypes.common import is_number
192
193
194
+
193
195
defcannot_infer_bad(obj: Union[str, int, float]):
194
196
195
197
if is_number(obj):
@@ -222,8 +224,8 @@ For example, quite a few functions in pandas accept a ``dtype`` argument. This c
222
224
223
225
from pandas._typing import Dtype
224
226
225
-
defas_type(dtype: Dtype) -> ...:
226
-
...
227
+
228
+
defas_type(dtype: Dtype) -> ...:...
227
229
228
230
This module will ultimately house types for repeatedly used concepts like "path-like", "array-like", "numeric", etc... and can also hold aliases for commonly appearing parameters like ``axis``. Development of this module is active so be sure to refer to the source for the most up to date list of available types.
0 commit comments