GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — use `typing.overload` in `enumerate.__new__` for `_GetItemIterable` f… · jorenham/typeshed@37c95e6

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • stdlib
    • builtins.pyi
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎stdlib/builtins.pyi‎

Copy file name to clipboardExpand all lines: stdlib/builtins.pyi
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,10 @@ class frozenset(AbstractSet[_T_co]):
11911191
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
11921192

11931193
class enumerate(Iterator[tuple[int, _T]]):
1194-
def __new__(cls, iterable: Iterable[_T] | _GetItemIterable[_T], start: int = ...) -> Self: ...
1194+
@overload
1195+
def __new__(cls, iterable: Iterable[_T], start: int = ...) -> Self: ...
1196+
@overload
1197+
def __new__(cls, iterable: _GetItemIterable[_T], start: int = ...) -> Self: ...
11951198
def __iter__(self) -> Self: ...
11961199
def __next__(self) -> tuple[int, _T]: ...
11971200
if sys.version_info >= (3, 9):

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.