Skip to content

Commit 70dc88b

Browse files
committed
Fixing Literal import
1 parent 8e57e46 commit 70dc88b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/io/stata.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
import struct
1919
import sys
2020
from typing import (
21+
TYPE_CHECKING,
2122
Any,
2223
AnyStr,
2324
Hashable,
24-
Literal,
2525
Sequence,
2626
cast,
2727
)
@@ -66,6 +66,9 @@
6666

6767
from pandas.io.common import get_handle
6868

69+
if TYPE_CHECKING:
70+
from typing import Literal
71+
6972
_version_error = (
7073
"Version of given Stata file is {version}. pandas supports importing "
7174
"versions 105, 108, 111 (Stata 7SE), 113 (Stata 8/9), "

0 commit comments

Comments
 (0)