Skip to content

Commit

Permalink
feat: pr feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Reining <[email protected]>
  • Loading branch information
lukas-reining committed Nov 19, 2024
1 parent b9d427c commit 1e93e32
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
4 changes: 2 additions & 2 deletions openfeature/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
from openfeature.provider import FeatureProvider
from openfeature.provider._registry import provider_registry
from openfeature.provider.metadata import Metadata
from openfeature.transaction_context import (
from openfeature.transaction_context import TransactionContextPropagator
from openfeature.transaction_context.no_op_transaction_context_propagator import (
NoOpTransactionContextPropagator,
TransactionContextPropagator,
)

__all__ = [
Expand Down
4 changes: 0 additions & 4 deletions openfeature/transaction_context/__init__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
from openfeature.transaction_context.context_var_transaction_context_propagator import (
ContextVarsTransactionContextPropagator,
)
from openfeature.transaction_context.no_op_transaction_context_propagator import (
NoOpTransactionContextPropagator,
)
from openfeature.transaction_context.transaction_context_propagator import (
TransactionContextPropagator,
)

__all__ = [
"TransactionContextPropagator",
"NoOpTransactionContextPropagator",
"ContextVarsTransactionContextPropagator",
]
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ class NoOpTransactionContextPropagator(TransactionContextPropagator):
def get_transaction_context(self) -> EvaluationContext:
return EvaluationContext()

def set_transaction_context(
self, transaction_context: EvaluationContext
) -> None:
pass
def set_transaction_context(self, transaction_context: EvaluationContext) -> None:
pass
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import typing
from typing import TypeVar

from openfeature.evaluation_context import EvaluationContext

T = TypeVar("T", bound="TransactionContextPropagator")


class TransactionContextPropagator(typing.Protocol):
def get_transaction_context(self) -> EvaluationContext: ...
Expand Down

0 comments on commit 1e93e32

Please sign in to comment.