mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-20 08:38:26 +08:00
Use assignment instead of annotation in third party enums (#11957)
This commit is contained in:
@@ -3,14 +3,14 @@ from _typeshed import Incomplete
|
||||
from collections.abc import Callable, Sequence
|
||||
from enum import Enum
|
||||
from logging import Logger
|
||||
from typing import Any, Final
|
||||
from typing import Any
|
||||
|
||||
from ..plugins.finder import Plugins
|
||||
|
||||
LOG: Logger
|
||||
|
||||
class _ARG(Enum):
|
||||
NO: Final = 1
|
||||
NO = 1
|
||||
|
||||
class Option:
|
||||
short_option_name: Incomplete
|
||||
|
||||
@@ -9,16 +9,16 @@ from .statistics import Statistics
|
||||
__all__ = ("StyleGuide",)
|
||||
|
||||
class Selected(enum.Enum):
|
||||
Explicitly: str
|
||||
Implicitly: str
|
||||
Explicitly = "explicitly selected"
|
||||
Implicitly = "implicitly selected"
|
||||
|
||||
class Ignored(enum.Enum):
|
||||
Explicitly: str
|
||||
Implicitly: str
|
||||
Explicitly = "explicitly ignored"
|
||||
Implicitly = "implicitly ignored"
|
||||
|
||||
class Decision(enum.Enum):
|
||||
Ignored: str
|
||||
Selected: str
|
||||
Ignored = "ignored error"
|
||||
Selected = "selected error"
|
||||
|
||||
class DecisionEngine:
|
||||
cache: Incomplete
|
||||
|
||||
Reference in New Issue
Block a user