mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-12 10:52:31 +08:00
Remove pytype workarounds from third-party stubs (#14471)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user