diff --git a/.sampo/changesets/forthright-guardian-sampsa.md b/.sampo/changesets/forthright-guardian-sampsa.md new file mode 100644 index 00000000..2add4e84 --- /dev/null +++ b/.sampo/changesets/forthright-guardian-sampsa.md @@ -0,0 +1,5 @@ +--- +pypi/posthog: patch +--- + +fix: type warning on new_context diff --git a/posthog/__init__.py b/posthog/__init__.py index edbe2226..3209de82 100644 --- a/posthog/__init__.py +++ b/posthog/__init__.py @@ -73,7 +73,11 @@ """Context management.""" -def new_context(fresh=False, capture_exceptions=True, client=None): +def new_context( + fresh: bool = False, + capture_exceptions: bool = True, + client: Optional[Client] = None, +): """ Create a new context scope that will be active for the duration of the with block.