Use typing_extensions.Self instead of _typeshed.Self (#9702)

This commit is contained in:
Alex Waygood
2023-02-15 11:32:43 +01:00
committed by GitHub
parent 8cd6d81f15
commit 7180d0223b
140 changed files with 597 additions and 610 deletions

View File

@@ -1,7 +1,8 @@
import http.client
from _typeshed import Incomplete, Self
from _typeshed import Incomplete
from collections.abc import Generator
from typing import Any, ClassVar
from typing_extensions import Self
from .error import *
@@ -184,4 +185,4 @@ class Response(dict[str, Any]):
previous: Any
def __init__(self, info) -> None: ...
@property
def dict(self: Self) -> Self: ...
def dict(self) -> Self: ...