Skip to content

Commit 19d4901

Browse files
committed
fixup: types
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
1 parent 68c2aa1 commit 19d4901

File tree

1 file changed

+8
-5
lines changed
  • providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd

1 file changed

+8
-5
lines changed

providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/config.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,13 @@ def __init__( # noqa: PLR0913
115115
)
116116

117117
self.fatal_status_codes: list[str] = (
118-
env_or_default(
119-
ENV_VAR_FATAL_STATUS_CODES,
120-
[],
121-
cast=lambda s: [item.strip() for item in s.split(",")],
118+
typing.cast(
119+
list[str],
120+
env_or_default(
121+
ENV_VAR_FATAL_STATUS_CODES,
122+
[],
123+
cast=lambda s: [item.strip() for item in s.split(",")],
124+
),
122125
)
123126
if fatal_status_codes is None
124127
else fatal_status_codes
@@ -175,7 +178,7 @@ def __init__( # noqa: PLR0913
175178
else port
176179
)
177180

178-
self.port: int = (
181+
self.port = (
179182
int(env_or_default(ENV_VAR_SYNC_PORT, self.port, cast=int))
180183
if sync_port is None and port is None
181184
else sync_port

0 commit comments

Comments
 (0)