File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -765,7 +765,7 @@ class StataMissingValue:
765
765
"float64" : struct .unpack ("<d" , float64_base )[0 ],
766
766
}
767
767
768
- def __init__ (self , value : Union [ int , float ] ):
768
+ def __init__ (self , value : float ):
769
769
self ._value = value
770
770
# Conversion to int to avoid hash issues on 32 bit platforms #8968
771
771
value = int (value ) if value < 2147483648 else float (value )
@@ -784,7 +784,7 @@ def string(self) -> str:
784
784
return self ._str
785
785
786
786
@property
787
- def value (self ) -> Union [ int , float ] :
787
+ def value (self ) -> float :
788
788
"""
789
789
The binary representation of the missing value.
790
790
@@ -809,7 +809,7 @@ def __eq__(self, other: Any) -> bool:
809
809
)
810
810
811
811
@classmethod
812
- def get_base_missing_value (cls , dtype : np .dtype ) -> Union [ int , float ] :
812
+ def get_base_missing_value (cls , dtype : np .dtype ) -> float :
813
813
if dtype == np .int8 :
814
814
value = cls .BASE_MISSING_VALUES ["int8" ]
815
815
elif dtype == np .int16 :
You can’t perform that action at this time.
0 commit comments