Skip to content

Commit ba5138c

Browse files
committed
prefer () for / line breaks
Signed-off-by: Matthew Keeler <[email protected]>
1 parent 06c2154 commit ba5138c

File tree

3 files changed

+23
-17
lines changed

3 files changed

+23
-17
lines changed

openfeature/evaluation_context/__init__.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
__all__ = ["EvaluationContext", "get_evaluation_context", "set_evaluation_context"]
1010

1111
# https://openfeature.dev/specification/sections/evaluation-context#requirement-312
12-
EvaluationContextAttribute = bool \
13-
| int \
14-
| float \
15-
| str \
16-
| datetime \
17-
| Sequence["EvaluationContextAttribute"] \
12+
EvaluationContextAttribute = (
13+
bool
14+
| int
15+
| float
16+
| str
17+
| datetime
18+
| Sequence["EvaluationContextAttribute"]
1819
| Mapping[str, "EvaluationContextAttribute"]
20+
)
1921

2022

2123
@dataclass

openfeature/flag_evaluation.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@ class Reason(StrEnum):
4343

4444

4545
FlagMetadata = Mapping[str, bool | int | float | str]
46-
FlagValueType = bool \
47-
| int \
48-
| float \
49-
| str \
50-
| Sequence["FlagValueType"] \
46+
FlagValueType = (
47+
bool
48+
| int
49+
| float
50+
| str
51+
| Sequence["FlagValueType"]
5152
| Mapping[str, "FlagValueType"]
53+
)
5254

5355
T_co = typing.TypeVar("T_co", covariant=True)
5456

openfeature/hook/__init__.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,15 @@ def __setattr__(self, key: str, value: typing.Any) -> None:
6969

7070

7171
# https://openfeature.dev/specification/sections/hooks/#requirement-421
72-
HookHintValue = bool \
73-
| int \
74-
| float \
75-
| str \
76-
| datetime \
77-
| Sequence["HookHintValue"] \
72+
HookHintValue = (
73+
bool
74+
| int
75+
| float
76+
| str
77+
| datetime
78+
| Sequence["HookHintValue"]
7879
| Mapping[str, "HookHintValue"]
80+
)
7981

8082
HookHints = Mapping[str, HookHintValue]
8183

0 commit comments

Comments
 (0)