8000 fix: remove trailing colon character for valid syntax by JakeRoggenbuck · Pull Request #33285 · PostHog/posthog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: remove trailing colon character for valid syntax #33285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JakeRoggenbuck
Copy link

fixes #33284

The current Python code example has an extra colon character.

Problem

There is an extra colon character in the Python snippet in ExperimentCodeSnippets.tsx.

Changes

I corrected the code snippet.

Did you write or update any docs for this change?

No docs other than the snipped were edited

The current Python code example has an extra colon character
@JakeRoggenbuck JakeRoggenbuck changed the title Remove trailing colon character for valid syntax fix: remove trailing colon character for valid syntax Jun 6, 2025
Copy link
Contributor
@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Fixed a Python syntax error in the code example by removing an extraneous trailing colon after posthog.get_feature_flag() in frontend/src/scenes/experiments/ExperimentCodeSnippets.tsx.

  • Fixed invalid Python syntax in example code that would have caused errors when copy-pasted

1 file reviewed, no comments
Edit PR Review Bot Settings | Greptile

@posthog-bot
Copy link
Contributor

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week. If you want to permanentely keep it open, use the waiting label.

@JakeRoggenbuck
Copy link
Author

Hey, I wanted to follow up about this.

When creating an experiment and then selecting Python, you're given this code sample, and it includes a syntax error in Python.

Here is a screenshot of the code sample given:

image

This PR fixes this syntax by removing the extra colon character.

@posthog-bot posthog-bot removed the stale label Jun 19, 2025
@andyzzhao andyzzhao self-requested a review June 19, 2025 12:51
Copy link
Contributor
@andyzzhao andyzzhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Copy link
Contributor
@andyzzhao andyzzhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extra colon character in Python code example
3 participants
0