mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Use typing_extensions.Self in the stdlib (#9694)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import sys
|
||||
from _typeshed import ReadableBuffer, Self
|
||||
from _typeshed import ReadableBuffer
|
||||
from collections.abc import Callable, Set as AbstractSet
|
||||
from typing import Protocol
|
||||
from typing_extensions import final
|
||||
from typing_extensions import Self, final
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
__all__ = (
|
||||
@@ -56,7 +56,7 @@ class _Hash:
|
||||
@property
|
||||
def name(self) -> str: ...
|
||||
def __init__(self, data: ReadableBuffer = ...) -> None: ...
|
||||
def copy(self: Self) -> Self: ...
|
||||
def copy(self) -> Self: ...
|
||||
def digest(self) -> bytes: ...
|
||||
def hexdigest(self) -> str: ...
|
||||
def update(self, __data: ReadableBuffer) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user