33# See the README.md file in this directory for more information.
44
55import sys
6- import typing_extensions
76from collections .abc import Awaitable , Callable , Iterable , Sequence , Set as AbstractSet , Sized
87from dataclasses import Field
98from os import PathLike
@@ -23,7 +22,7 @@ from typing import (
2322 final ,
2423 overload ,
2524)
26- from typing_extensions import Buffer , LiteralString , TypeAlias
25+ from typing_extensions import Buffer , LiteralString , Self as _Self , TypeAlias
2726
2827_KT = TypeVar ("_KT" )
2928_KT_co = TypeVar ("_KT_co" , covariant = True )
@@ -329,9 +328,9 @@ class structseq(Generic[_T_co]):
329328 # The second parameter will accept a dict of any kind without raising an exception,
330329 # but only has any meaning if you supply it a dict where the keys are strings.
331330 # https://github.com/python/typeshed/pull/6560#discussion_r767149830
332- def __new__ (cls , sequence : Iterable [_T_co ], dict : dict [str , Any ] = ...) -> typing_extensions . Self : ...
331+ def __new__ (cls , sequence : Iterable [_T_co ], dict : dict [str , Any ] = ...) -> _Self : ...
333332 if sys .version_info >= (3 , 13 ):
334- def __replace__ (self , ** kwargs : Any ) -> typing_extensions . Self : ...
333+ def __replace__ (self , ** kwargs : Any ) -> _Self : ...
335334
336335# Superset of typing.AnyStr that also includes LiteralString
337336AnyOrLiteralStr = TypeVar ("AnyOrLiteralStr" , str , bytes , LiteralString ) # noqa: Y001
0 commit comments