Remove Python 3.6 branches from typeshed (#8269)

This commit is contained in:
Alex Waygood
2022-07-11 09:55:17 +01:00
committed by GitHub
parent 29c17ffb47
commit edc0ecd857
114 changed files with 1016 additions and 2642 deletions

View File

@@ -2,32 +2,28 @@ import sys
from _typeshed import Self, StrOrBytesPath
from collections.abc import Iterable
from cProfile import Profile as _cProfile
from enum import Enum
from profile import Profile
from typing import IO, Any, overload
from typing_extensions import Literal, TypeAlias
if sys.version_info >= (3, 9):
__all__ = ["Stats", "SortKey", "FunctionProfile", "StatsProfile"]
elif sys.version_info >= (3, 7):
__all__ = ["Stats", "SortKey"]
else:
__all__ = ["Stats"]
__all__ = ["Stats", "SortKey"]
_Selector: TypeAlias = str | float | int
if sys.version_info >= (3, 7):
from enum import Enum
class SortKey(str, Enum):
CALLS: str
CUMULATIVE: str
FILENAME: str
LINE: str
NAME: str
NFL: str
PCALLS: str
STDNAME: str
TIME: str
class SortKey(str, Enum):
CALLS: str
CUMULATIVE: str
FILENAME: str
LINE: str
NAME: str
NFL: str
PCALLS: str
STDNAME: str
TIME: str
if sys.version_info >= (3, 9):
from dataclasses import dataclass