We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c79b5ec commit 6159c26Copy full SHA for 6159c26
1 file changed
refinery/lib/ole/pcode.py
@@ -22,7 +22,7 @@
22
import struct as _struct
23
24
from dataclasses import dataclass, field
25
-from typing import NamedTuple
+from typing import NamedTuple, TYPE_CHECKING
26
27
from refinery.lib.ole.file import OleFile
28
from refinery.lib.ole.vba import _codepage_to_codec, _find_vba_projects, decompress_stream
@@ -114,7 +114,10 @@ class RecordInfo:
114
text: str
115
116
117
-OpcodeArg = str | TypeRef | VarInfo | ArgInfo | FuncInfo | DimScope | CoerceType | RecordInfo
+if TYPE_CHECKING:
118
+ OpcodeArg = str | TypeRef | VarInfo | ArgInfo | FuncInfo | DimScope | CoerceType | RecordInfo
119
+else:
120
+ OpcodeArg = str
121
122
123
class PCodeLine(NamedTuple):
0 commit comments