Skip to content

Commit ed30c2d

Browse files
committed
Add type hint to StataParser.MISSING_VALUES to avoid mypy error when constructing StataMissingValue from value
1 parent 485e7ca commit ed30c2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/stata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ def __init__(self) -> None:
10071007

10081008
# These missing values are the generic '.' in Stata, and are used
10091009
# to replace nans
1010-
self.MISSING_VALUES = {
1010+
self.MISSING_VALUES: dict[str, int | np.float32 | np.float64] = {
10111011
"b": 101,
10121012
"h": 32741,
10131013
"l": 2147483621,

0 commit comments

Comments
 (0)