Skip to content

Commit 0665e19

Browse files
committed
Fix mypy type error in FeatureFlagError.api_error method
Accept Union[int, str] to match APIError.status type.
1 parent 677b0ae commit 0665e19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posthog/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ class FeatureFlagError:
336336
UNKNOWN_ERROR = "unknown_error"
337337

338338
@staticmethod
339-
def api_error(status: int) -> str:
339+
def api_error(status: Union[int, str]) -> str:
340340
"""Generate API error string with status code.
341341
342342
Args:

0 commit comments

Comments
 (0)