Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(comment): reduce Never #1312 (review)
  • Loading branch information
cmp0xff committed Aug 18, 2025
commit 5c2a5924fdbbb5c5fee0086fa82d32ad14981c88
12 changes: 12 additions & 0 deletions pandas-stubs/_typing.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ from re import Pattern
import sys
from typing import (
Any,
Generic,
Literal,
Protocol,
SupportsIndex,
TypedDict,
Union,
overload,
override,
)

import numpy as np
Expand Down Expand Up @@ -1038,4 +1040,14 @@ DictConvertible: TypeAlias = FulldatetimeDict | DataFrame
# where it is the only acceptable type.
Incomplete: TypeAlias = Any

# differentiating between bool and int/float/complex
# https://github.com/pandas-dev/pandas-stubs/pull/1312#pullrequestreview-3126128971
class Just(Protocol, Generic[T]):
@property # type: ignore[override]
@override
def __class__(self, /) -> type[T]: ...
@__class__.setter
@override
def __class__(self, t: type[T], /) -> None: ...

__all__ = ["npt", "type_t"]
Loading
Loading