diff --git a/posthog/client.py b/posthog/client.py index d71aa13d7..82051dc38 100644 --- a/posthog/client.py +++ b/posthog/client.py @@ -1923,7 +1923,7 @@ def _set_before_send(self, before_send): def new_context(self, fresh=False, capture_exceptions: Optional[bool] = None): """ - Create a new context for managing shared state. Learn more about [contexts](/docs/libraries/python#contexts). + Create a new context for managing shared state. Learn more about [contexts](/docs/libraries/python/reference#posthognew_context). Args: fresh: Whether to create a fresh context that doesn't inherit from parent. diff --git a/references/posthog-python-7.md b/references/posthog-python-7.md index a9ed00bd7..b00fbd36b 100644 --- a/references/posthog-python-7.md +++ b/references/posthog-python-7.md @@ -963,7 +963,7 @@ Flat list of the lanes' consumers, analytics first (kept for backwards compatibi new_context(fresh=False, capture_exceptions: Optional[bool] = None) ``` -Create a new context for managing shared state. Learn more about [contexts](/docs/libraries/python#contexts). +Create a new context for managing shared state. Learn more about [contexts](/docs/libraries/python/reference#posthognew_context). **Parameters:** diff --git a/references/posthog-python-8.md b/references/posthog-python-8.md index a7d441aa7..4ab13a991 100644 --- a/references/posthog-python-8.md +++ b/references/posthog-python-8.md @@ -1001,7 +1001,7 @@ Flat list of the lanes' consumers, analytics first (kept for backwards compatibi new_context(fresh=False, capture_exceptions: Optional[bool] = None) ``` -Create a new context for managing shared state. Learn more about [contexts](/docs/libraries/python#contexts). +Create a new context for managing shared state. Learn more about [contexts](/docs/libraries/python/reference#posthognew_context). **Parameters:** diff --git a/references/posthog-python-reference.md b/references/posthog-python-reference.md index acd91e295..b62c683aa 100644 --- a/references/posthog-python-reference.md +++ b/references/posthog-python-reference.md @@ -1001,7 +1001,7 @@ Flat list of the lanes' consumers, analytics first (kept for backwards compatibi new_context(fresh=False, capture_exceptions: Optional[bool] = None) ``` -Create a new context for managing shared state. Learn more about [contexts](/docs/libraries/python#contexts). +Create a new context for managing shared state. Learn more about [contexts](/docs/libraries/python/reference#posthognew_context). **Parameters:**