mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-26 05:41:11 +08:00
Various py311 removals (#7836)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import sys
|
||||
from collections.abc import Iterator
|
||||
from typing import Any, Protocol, TypeVar
|
||||
|
||||
@@ -14,6 +15,9 @@ class PackageMetadata(Protocol):
|
||||
|
||||
class SimplePath(Protocol):
|
||||
def joinpath(self) -> SimplePath: ...
|
||||
def __div__(self) -> SimplePath: ...
|
||||
def parent(self) -> SimplePath: ...
|
||||
def read_text(self) -> str: ...
|
||||
if sys.version_info >= (3, 11):
|
||||
def __truediv__(self) -> SimplePath: ...
|
||||
else:
|
||||
def __div__(self) -> SimplePath: ...
|
||||
|
||||
Reference in New Issue
Block a user