We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9481eac commit 1c0fa11Copy full SHA for 1c0fa11
pandas/core/computation/expr.py
@@ -7,7 +7,7 @@
7
import itertools as it
8
import token
9
import tokenize
10
-from typing import Any, Generator, Tuple, Type
+from typing import Generator, Tuple, Type
11
12
import numpy as np
13
@@ -42,7 +42,9 @@
42
Tok = Tuple[int, str]
43
44
45
-def tokenize_backtick_quoted_string(token_generator) -> Tok:
+def tokenize_backtick_quoted_string(
46
+ token_generator: Generator[tokenize.TokenInfo, None, None]
47
+) -> Tok:
48
"""Creates a token from a backtick quoted string.
49
Moves the token_generator forwards till right after the next backtick."""
50
prev_toknum = token.OP # This will trigger the first token to have no space
0 commit comments