Various py311 removals (#7836)

This commit is contained in:
Alex Waygood
2022-05-17 01:28:13 +01:00
committed by GitHub
parent 87abd8a39f
commit e9526faf40
7 changed files with 25 additions and 16 deletions

View File

@@ -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: ...