Remove pytype workarounds from third-party stubs (#14471)

This commit is contained in:
Sebastian Rittau
2025-07-27 13:05:57 +02:00
committed by GitHub
parent 7e16c80989
commit 981bd8eb8d
6 changed files with 10 additions and 17 deletions
-1
View File
@@ -7,7 +7,6 @@ from pandas import DataFrame
# pandas._typing.AggFuncTypeFrame is partially Unknown
_AggFuncTypeBase: TypeAlias = Callable[..., Incomplete] | str | ufunc
# Using Hashable instead of HashableT to work around pytype issue
_AggFuncTypeDictFrame: TypeAlias = Mapping[Hashable, _AggFuncTypeBase | list[_AggFuncTypeBase]]
_AggFuncTypeFrame: TypeAlias = _AggFuncTypeBase | list[_AggFuncTypeBase] | _AggFuncTypeDictFrame
+1 -1
View File
@@ -11,7 +11,7 @@ class Agg(Stat):
@dataclass
class Est(Stat):
func: str | Callable[[Vector], float] = "mean"
errorbar: str | tuple[str, float] = ... # ("ci", 95) # pytype parse error
errorbar: str | tuple[str, float] = ("ci", 95)
n_boot: int = 1000
seed: int | None = None