Skip to content

Commit 3b5f1a4

Browse files
Fix typing
Signed-off-by: Goutam <goutam@anyscale.com>
1 parent c39c65b commit 3b5f1a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/ray/data/expressions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from abc import ABC, abstractmethod
55
from dataclasses import dataclass, field
66
from enum import Enum
7-
from typing import Any, Callable, Dict, Generic, List, Literal, TypeVar, Union
7+
from typing import Any, Callable, Dict, Generic, List, Literal, Optional, TypeVar, Union
88

99
import pyarrow
1010
import pyarrow.compute as pc
@@ -483,8 +483,8 @@ class _PyArrowMethodConfig:
483483

484484
pc_func_name: str
485485
return_dtype: DataType
486-
params: List[str] = field(default=None)
487-
docstring: str = field(default=None)
486+
params: Optional[List[str]] = field(default=None)
487+
docstring: Optional[str] = field(default=None)
488488

489489

490490
def _make_namespace_method(config: _PyArrowMethodConfig) -> Callable:

0 commit comments

Comments
 (0)