You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"The 'context' parameter is deprecated and will be removed in a future version.",
50
+
DeprecationWarning,
51
+
stacklevel=2,
52
+
)
53
+
46
54
# type: (...) -> Tuple[bool, dict]
47
55
"""
48
56
Capture allows you to capture anything a user does within your system, which you can later use in PostHog to find patterns in usage, work out which features to improve or where people are giving up.
@@ -86,6 +94,13 @@ def identify(
86
94
uuid=None, # type: Optional[str]
87
95
disable_geoip=None, # type: Optional[bool]
88
96
):
97
+
ifcontextisnotNone:
98
+
warnings.warn(
99
+
"The 'context' parameter is deprecated and will be removed in a future version.",
100
+
DeprecationWarning,
101
+
stacklevel=2,
102
+
)
103
+
89
104
# type: (...) -> Tuple[bool, dict]
90
105
"""
91
106
Identify lets you add metadata on your users so you can more easily identify who they are in PostHog, and even do things like segment users by these properties.
@@ -121,6 +136,13 @@ def set(
121
136
uuid=None, # type: Optional[str]
122
137
disable_geoip=None, # type: Optional[bool]
123
138
):
139
+
ifcontextisnotNone:
140
+
warnings.warn(
141
+
"The 'context' parameter is deprecated and will be removed in a future version.",
142
+
DeprecationWarning,
143
+
stacklevel=2,
144
+
)
145
+
124
146
# type: (...) -> Tuple[bool, dict]
125
147
"""
126
148
Set properties on a user record.
@@ -156,6 +178,13 @@ def set_once(
156
178
uuid=None, # type: Optional[str]
157
179
disable_geoip=None, # type: Optional[bool]
158
180
):
181
+
ifcontextisnotNone:
182
+
warnings.warn(
183
+
"The 'context' parameter is deprecated and will be removed in a future version.",
184
+
DeprecationWarning,
185
+
stacklevel=2,
186
+
)
187
+
159
188
# type: (...) -> Tuple[bool, dict]
160
189
"""
161
190
Set properties on a user record, only if they do not yet exist.
@@ -192,6 +221,12 @@ def group_identify(
192
221
uuid=None, # type: Optional[str]
193
222
disable_geoip=None, # type: Optional[bool]
194
223
):
224
+
ifcontextisnotNone:
225
+
warnings.warn(
226
+
"The 'context' parameter is deprecated and will be removed in a future version.",
227
+
DeprecationWarning,
228
+
stacklevel=2,
229
+
)
195
230
# type: (...) -> Tuple[bool, dict]
196
231
"""
197
232
Set properties on a group
@@ -228,6 +263,12 @@ def alias(
228
263
uuid=None, # type: Optional[str]
229
264
disable_geoip=None, # type: Optional[bool]
230
265
):
266
+
ifcontextisnotNone:
267
+
warnings.warn(
268
+
"The 'context' parameter is deprecated and will be removed in a future version.",
269
+
DeprecationWarning,
270
+
stacklevel=2,
271
+
)
231
272
# type: (...) -> Tuple[bool, dict]
232
273
"""
233
274
To marry up whatever a user does before they sign up or log in with what they do after you need to make an alias call. This will allow you to answer questions like "Which marketing channels leads to users churning after a month?" or "What do users do on our website before signing up?"
0 commit comments