Skip to content

Conversation

@pauldambra
Copy link
Member

in #361 a user had to report that using the SDK printed a syntax warning

let's not wait

add a CI job that imports posthog and fails if there is a syntax warning

this will fail until #361 is merged

@pauldambra pauldambra requested a review from a team January 7, 2026 23:06
rafaeelaudibert added a commit that referenced this pull request Jan 8, 2026
This is a syntax error in Python 3.8+ (it was deprecated earlier and became an error). The return statement should be moved outside the finally block.

We've never noticed this, but we can see it because of the new github action added on #404
@pauldambra pauldambra merged commit 92d810e into master Jan 8, 2026
21 checks passed
@pauldambra pauldambra deleted the chore/check-for-syntax-warnings branch January 8, 2026 21:26
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.

3 participants