Skip to content

Fix "indented block" linter error #3468

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

Merged
merged 3 commits into from
Aug 28, 2024

Conversation

szokeasaurusrex
Copy link
Member

Fix this strange linter error. Also, fix other mypy errors which mypy only surfaced after fixing the linked linter error, and fix typing in this file, which is broken by the fix for the original mypy error.

It might be easiest to review each of the three commits in this PR individually, since they each build on each other and have through commit messages.

Fix this [mypy error](https://github.com/getsentry/sentry-python/actions/runs/10390581522/job/28771379618):

```
sentry_sdk/integrations/opentelemetry/potel_span_processor.py:149: error: expected an indented block after function definition on line 31  [syntax]
```

Honestly not sure why this change fixes the problem, maybe there is some bug in `mypy`.
After fixing the previous mypy failure, mypy discovered more syntax problems, which this commit fixes.
Fixing the original mypy error broke the typing; this change fixes the typing.
@szokeasaurusrex
Copy link
Member Author

Looks like linter is still failing, but now there are a bunch more failures that were not detected previously, because the linter failure I fixed was preventing further linting

Copy link

codecov bot commented Aug 27, 2024

❌ 3784 Tests Failed:

Tests completed Failed Passed Skipped
16187 3784 12403 1915
View the top 3 failed tests by shortest run time
tests.integrations.celery.test_celery test_baggage_propagation
Stack Traces | 0s run time
No failure message available
tests.integrations.celery.test_celery test_transaction_events[<lambda>3-success]
Stack Traces | 0s run time
No failure message available
tests.integrations.celery.test_update_celery_task_headers test_span_with_transaction
Stack Traces | 0s run time
No failure message available

To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard

Copy link
Contributor

@sentrivana sentrivana left a comment

Choose a reason for hiding this comment

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

Nice work, detective 🎖️

We can merge this even with the new failures -- no need to fix that in this PR

@szokeasaurusrex szokeasaurusrex merged commit 64cbaff into potel-base Aug 28, 2024
8 of 110 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/potel-base-mypy branch August 28, 2024 09:12
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