mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 14:01:55 +08:00
Remove Python 3.6 branches from typeshed (#8269)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user