FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

`types`: Add several missing `__(qual)name__` attributes by AlexWaygood · Pull Request #7216 · python/typeshed · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .pyi  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
6 changes: 6 additions & 0 deletions stdlib/types.pyi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ class GeneratorType(Generator[_T_co, _T_contra, _V_co]):
gi_frame: FrameType
gi_running: bool
gi_yieldfrom: GeneratorType[_T_co, _T_contra, Any] | None
__name__: str
__qualname__: str
def __iter__(self) -> GeneratorType[_T_co, _T_contra, _V_co]: ...
def __next__(self) -> _T_co: ...
def close(self) -> None: ...
Expand All @@ -231,6 +233,8 @@ class AsyncGeneratorType(AsyncGenerator[_T_co, _T_contra]):
ag_frame: FrameType
ag_running: bool
ag_code: CodeType
__name__: str
__qualname__: str
def __aiter__(self) -> AsyncGeneratorType[_T_co, _T_contra]: ...
async def __anext__(self) -> _T_co: ...
async def asend(self, __val: _T_contra) -> _T_co: ...
Expand Down Expand Up @@ -366,6 +370,7 @@ class FrameType:
@final
class GetSetDescriptorType:
__name__: str
__qualname__: str
__objclass__: type
def __get__(self, __obj: Any, __type: type = ...) -> Any: ...
def __set__(self, __instance: Any, __value: Any) -> None: ...
Expand All @@ -374,6 +379,7 @@ class GetSetDescriptorType:
@final
class MemberDescriptorType:
__name__: str
__qualname__: str
__objclass__: type
def __get__(self, __obj: Any, __type: type = ...) -> Any: ...
def __set__(self, __instance: Any, __value: Any) -> None: ...
Expand Down

Back | FazBrowse Home | New Git URL