diff --git a/pandas/_libs/arrays.pyx b/pandas/_libs/arrays.pyx index 8895a2bcfca89..f63d16e819c92 100644 --- a/pandas/_libs/arrays.pyx +++ b/pandas/_libs/arrays.pyx @@ -157,7 +157,7 @@ cdef class NDArrayBacked: return self._from_backing_data(res_values) # TODO: pass NPY_MAXDIMS equiv to axis=None? - def repeat(self, repeats, axis: int = 0): + def repeat(self, repeats, axis: int | np.integer = 0): if axis is None: axis = 0 res_values = cnp.PyArray_Repeat(self._ndarray, repeats, axis) diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx index e187df6d6f627..3332628627739 100644 --- a/pandas/_libs/tslibs/period.pyx +++ b/pandas/_libs/tslibs/period.pyx @@ -1643,7 +1643,7 @@ cdef class _Period(PeriodMixin): return freq @classmethod - def _from_ordinal(cls, ordinal: int, freq) -> "Period": + def _from_ordinal(cls, ordinal: int64_t, freq) -> "Period": """ Fast creation from an ordinal and freq that are already validated! """ diff --git a/pandas/tests/io/parser/test_quoting.py b/pandas/tests/io/parser/test_quoting.py index 456dd049d2f4a..a1aba949e74fe 100644 --- a/pandas/tests/io/parser/test_quoting.py +++ b/pandas/tests/io/parser/test_quoting.py @@ -38,7 +38,7 @@ def test_bad_quote_char(all_parsers, kwargs, msg): @pytest.mark.parametrize( "quoting,msg", [ - ("foo", '"quoting" must be an integer'), + ("foo", '"quoting" must be an integer|Argument'), (5, 'bad "quoting" value'), # quoting must be in the range [0, 3] ], )