Type and mark as final module-level dunders not meant to be overwritten in stdlib/ (#9709)

This commit is contained in:
Avasam
2023-02-12 11:15:20 -05:00
committed by GitHub
parent 35871f4222
commit a768744d51
8 changed files with 25 additions and 22 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
from typing import Any, TypeVar
from typing_extensions import Final
_T = TypeVar("_T")
__about__: str
__about__: Final[str]
def heapify(__heap: list[Any]) -> None: ...
def heappop(__heap: list[_T]) -> _T: ...