We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae6f5f9 commit b90a7a9Copy full SHA for b90a7a9
posthog/client.py
@@ -87,7 +87,10 @@ def get_identity_state(passed) -> tuple[str, bool]:
87
return (str(uuid4()), True)
88
89
90
-def add_context_tags(properties):
+def add_context_tags(properties: Optional[Dict[str, Any]]) -> Dict[str, Any]:
91
+ if properties is None:
92
+ properties = {}
93
+
94
current_context = _get_current_context()
95
if current_context:
96
context_tags = current_context.collect_tags()
@@ -532,7 +535,7 @@ def capture(
532
535
if personless and "$process_person_profile" not in properties:
533
536
properties["$process_person_profile"] = False
534
537
- msg = {
538
+ msg: Dict[str, Any] = {
539
"properties": properties,
540
"timestamp": timestamp,
541
"distinct_id": distinct_id,
0 commit comments