Skip to content

Commit 8f44221

Browse files
GH1222 PR feedback
1 parent ca6ebd1 commit 8f44221

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

pandas-stubs/core/series.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ from pandas.core.dtypes.dtypes import CategoricalDtype
179179

180180
from pandas.plotting import PlotAccessor
181181

182-
_bool = bool
183-
_str = str
182+
_bool: TypeAlias = bool
183+
_str: TypeAlias = str
184184

185185
class _iLocIndexerSeries(_iLocIndexer, Generic[S1]):
186186
# get item

pandas-stubs/core/strings.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ from typing import (
88
Any,
99
Generic,
1010
Literal,
11+
TypeAlias,
1112
TypeVar,
1213
overload,
1314
)

scripts/test/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@
55
from scripts._job import run_job
66
from scripts.test import _step
77

8-
_SRC_STEPS = [_step.mypy_src, _step.pyright_src, _step.pytest, _step.style]
8+
_SRC_STEPS = [
9+
_step.mypy_src,
10+
_step.ty_src,
11+
_step.pyright_src,
12+
_step.pytest,
13+
_step.style,
14+
]
915
_DIST_STEPS = [
1016
_step.build_dist,
1117
_step.install_dist,

scripts/test/_step.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
name="Run mypy on 'tests' (using the local stubs) and on the local stubs",
66
run=run.mypy_src,
77
)
8+
ty_src = Step(
9+
name="Run ty on 'pandas-stubs' (using the local stubs) and on the local stubs",
10+
run=run.ty,
11+
)
812
pyright_src = Step(
913
name="Run pyright on 'tests' (using the local stubs) and on the local stubs",
1014
run=run.pyright_src,

0 commit comments

Comments
 (0)