Various py311 removals (#7836)

This commit is contained in:
Alex Waygood authored and GitHub committed 2022-05-16 17:28:13 -07:00
1 parent 87abd8a39f
commit e9526faf40
7 files changed
+25 -16

No files matched your search

+5 -1
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: ...