Skip to content

Commit 9ec7f03

Browse files
committed
feat(provider): remove deprecated environment argument
Signed-off-by: Kiki L Hakiem <[email protected]>
1 parent 3fc085a commit 9ec7f03

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

providers/openfeature-provider-unleash/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ provider = UnleashProvider(
2727
url="https://my-unleash-instance.com",
2828
app_name="my-python-app",
2929
api_token="my-api-token",
30-
environment="development", # optional, defaults to "development"
3130
)
3231

3332
# Initialize the provider (required before use)
@@ -41,7 +40,6 @@ api.set_provider(provider)
4140
- `url`: The URL of your Unleash server
4241
- `app_name`: The name of your application
4342
- `api_token`: The API token for authentication
44-
- `environment`: The Unleash environment to connect to (default: `development`)
4543

4644
### Evaluation context mapping
4745

providers/openfeature-provider-unleash/src/openfeature/contrib/provider/unleash/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ def __init__(
2424
url: str,
2525
app_name: str,
2626
api_token: str,
27-
environment: str = "development",
2827
fetch_toggles: bool = True,
2928
cache: Optional[BaseCache] = None,
3029
) -> None:
@@ -34,21 +33,18 @@ def __init__(
3433
url: The Unleash API URL
3534
app_name: The application name
3635
api_token: The API token for authentication
37-
environment: The environment to connect to (default: "development")
3836
fetch_toggles: Whether to fetch toggles from server on initialization (default: True)
3937
cache: Optional cache implementation to use (default: UnleashClient's default)
4038
"""
4139
self.url = url
4240
self.app_name = app_name
4341
self.api_token = api_token
44-
self.environment = environment
4542
self.cache = cache
4643
self._status = ProviderStatus.NOT_READY
4744

4845
self.client: UnleashClient = UnleashClient(
4946
url=self.url,
5047
app_name=self.app_name,
51-
environment=self.environment,
5248
custom_headers={"Authorization": self.api_token},
5349
event_callback=self._unleash_event_callback,
5450
cache=self.cache,

0 commit comments

Comments
 (0)