Skip to content

Commit d6c22b7

Browse files
committed
https://github.com/pandas-dev/pandas-stubs/pull/1508#discussion_r2574695253
1 parent 3b56f6c commit d6c22b7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/_typing.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
# Committed content should be import-only. At runtime of tests, this file will
2-
# be replaced by pandas-stubs/_typing.pyi.
1+
# This file serves as a stub file for static type checkers
2+
# (pyright does not like it if I call the file tests/_typing.pyi).
3+
# In tests/conftest.py, this file is copied to tests/_typing.pyi, and
4+
# pandas-stubs/_typing.pyi is copied to tests/_typing.py.
5+
# After tests are done, tests/_typing.pyi is copied back to
6+
# pandas-stubs/_typing.pyi.
7+
# Do not commit this file if its content is identical to pandas-stubs/_typing.pyi.
38

49
from pandas._typing import (
510
BooleanDtypeArg,

0 commit comments

Comments
 (0)