Skip to content

Commit f6c8ede

Browse files
fix: type warning on new_context (#558)
* fix type warning on `new_context` * changeset --------- Co-authored-by: Manoel Aranda Neto <marandaneto@gmail.com>
1 parent f055e76 commit f6c8ede

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
pypi/posthog: patch
3+
---
4+
5+
fix: type warning on new_context

posthog/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@
7373
"""Context management."""
7474

7575

76-
def new_context(fresh=False, capture_exceptions=True, client=None):
76+
def new_context(
77+
fresh: bool = False,
78+
capture_exceptions: bool = True,
79+
client: Optional[Client] = None,
80+
):
7781
"""
7882
Create a new context scope that will be active for the duration of the with block.
7983

0 commit comments

Comments
 (0)