Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .sampo/changesets/forthright-guardian-sampsa.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
pypi/posthog: patch
---

fix: type warning on new_context
6 changes: 5 additions & 1 deletion posthog/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Loading