Skip to content

Commit 041007b

Browse files
lmeyerovclaude
andcommitted
fix(gfql/cudf): py3.8/3.9 typing — Tuple[...] not builtin tuple[...] in _cudf_regex_prep
The cuDF =~ flags commit annotated _cudf_regex_prep with "tuple[object, bool]", which mypy rejects on py3.8/3.9 (builtin generics need 3.9+/3.10+); broke the python-lint-types (3.8, 3.9) lanes on #1675/#1677. Use typing.Tuple. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 7c1be04 commit 041007b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • graphistry/compute/predicates

graphistry/compute/predicates/str.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, Optional, Union, cast
1+
from typing import Any, Optional, Tuple, Union, cast
22
import re
33

44
import pandas as pd
@@ -424,7 +424,7 @@ def _validate_fields(self) -> None:
424424
)
425425

426426

427-
def _cudf_regex_prep(pat: object, case: bool) -> "tuple[object, bool]":
427+
def _cudf_regex_prep(pat: object, case: bool) -> Tuple[object, bool]:
428428
"""Adapt a regex for libcudf, which rejects inline flag groups (``(?i)``,
429429
``(?m)``, ``(?s)`` …) at ANY position (raises "invalid regex pattern").
430430

0 commit comments

Comments
 (0)