Skip to content

Commit

Permalink
Pandas 2.2; remove some deprecated behavior; update black+pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
twoertwein committed Feb 10, 2024
1 parent e35c3ca commit 63eb1d2
Show file tree
Hide file tree
Showing 52 changed files with 1,074 additions and 1,071 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ ci:
autofix_prs: false
repos:
- repo: https://github.com/python/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.9
rev: v0.2.1
hooks:
- id: ruff
args: [
Expand Down
2 changes: 0 additions & 2 deletions pandas-stubs/_libs/lib.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ from typing import (
)

import numpy as np
from pandas import Interval
from typing_extensions import (
TypeAlias,
TypeGuard,
Expand All @@ -21,7 +20,6 @@ def infer_dtype(value: object, skipna: bool = ...) -> str: ...
def is_iterator(obj: object) -> bool: ...
def is_scalar(val: object) -> bool: ...
def is_list_like(obj: object, allow_sets: bool = ...) -> bool: ...
def is_interval(val: object) -> TypeGuard[Interval]: ...
def is_complex(val: object) -> TypeGuard[complex]: ...
def is_bool(val: object) -> TypeGuard[bool | np.bool_]: ...
def is_integer(val: object) -> TypeGuard[int | np.integer]: ...
Expand Down
9 changes: 3 additions & 6 deletions pandas-stubs/_libs/tslibs/period.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,9 @@ class PeriodMixin:
class Period(PeriodMixin):
def __init__(
self,
value: Period
| str
| datetime.datetime
| datetime.date
| Timestamp
| None = ...,
value: (
Period | str | datetime.datetime | datetime.date | Timestamp | None
) = ...,
freq: str | BaseOffset | None = ...,
ordinal: int | None = ...,
year: int | None = ...,
Expand Down
1 change: 0 additions & 1 deletion pandas-stubs/api/types/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ from pandas.core.dtypes.api import (
is_hashable as is_hashable,
is_integer as is_integer,
is_integer_dtype as is_integer_dtype,
is_interval as is_interval,
is_iterator as is_iterator,
is_list_like as is_list_like,
is_named_tuple as is_named_tuple,
Expand Down
1 change: 0 additions & 1 deletion pandas-stubs/core/dtypes/api.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ from pandas.core.dtypes.common import (
is_hashable as is_hashable,
is_integer as is_integer,
is_integer_dtype as is_integer_dtype,
is_interval as is_interval,
is_iterator as is_iterator,
is_list_like as is_list_like,
is_named_tuple as is_named_tuple,
Expand Down
1 change: 0 additions & 1 deletion pandas-stubs/core/dtypes/common.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ from pandas.core.dtypes.inference import (
is_float as is_float,
is_hashable as is_hashable,
is_integer as is_integer,
is_interval as is_interval,
is_iterator as is_iterator,
is_list_like as is_list_like,
is_named_tuple as is_named_tuple,
Expand Down
1 change: 0 additions & 1 deletion pandas-stubs/core/dtypes/inference.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ is_integer = lib.is_integer
is_float = lib.is_float
is_complex = lib.is_complex
is_scalar = lib.is_scalar
is_interval = lib.is_interval
is_list_like = lib.is_list_like
is_iterator = lib.is_iterator

Expand Down
Loading

0 comments on commit 63eb1d2

Please sign in to comment.