mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Improve cmp_op in opcode (#6884)
This commit is contained in:
@@ -1,7 +1,23 @@
|
||||
import sys
|
||||
from typing import Sequence
|
||||
from typing_extensions import Literal
|
||||
|
||||
cmp_op: Sequence[str]
|
||||
if sys.version_info >= (3, 9):
|
||||
cmp_op: tuple[Literal["<"], Literal["<="], Literal["=="], Literal["!="], Literal[">"], Literal[">="]]
|
||||
else:
|
||||
cmp_op: tuple[
|
||||
Literal["<"],
|
||||
Literal["<="],
|
||||
Literal["=="],
|
||||
Literal["!="],
|
||||
Literal[">"],
|
||||
Literal[">="],
|
||||
Literal["in"],
|
||||
Literal["not in"],
|
||||
Literal["is"],
|
||||
Literal["is not"],
|
||||
Literal["exception match"],
|
||||
Literal["BAD"],
|
||||
]
|
||||
hasconst: list[int]
|
||||
hasname: list[int]
|
||||
hasjrel: list[int]
|
||||
|
||||
Reference in New Issue
Block a user