Skip to content

Commit 88e7967

Browse files
committed
fix: builtin shadowing
1 parent 3304f3b commit 88e7967

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

stubs/tensorflow/tensorflow/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import abc
22
from _typeshed import Incomplete, Unused
33
from abc import ABC, ABCMeta, abstractmethod
4-
from builtins import bool as _bool
4+
from builtins import bool as _bool, slice as _slice
55
from collections.abc import Callable, Generator, Iterable, Iterator, Sequence
66
from contextlib import contextmanager
77
from enum import Enum
@@ -239,7 +239,7 @@ class TensorShape(metaclass=ABCMeta):
239239
@overload
240240
def __getitem__(self, key: int) -> int | None: ...
241241
@overload
242-
def __getitem__(self, key: slice) -> TensorShape: ...
242+
def __getitem__(self, key: _slice) -> TensorShape: ...
243243

244244
def __iter__(self) -> Iterator[int | None]: ...
245245
def __len__(self) -> int: ...

0 commit comments

Comments
 (0)