-
Notifications
You must be signed in to change notification settings - Fork 604
Testing the gh actions workflow for contribution violations (no issue reference) #5900
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,14 +4,6 @@ | |
| from datetime import datetime, timezone | ||
| from typing import TYPE_CHECKING, TypeVar, Generic | ||
|
|
||
| from sentry_sdk.utils import format_timestamp | ||
| from sentry_sdk.envelope import Envelope, Item, PayloadRef | ||
|
|
||
| if TYPE_CHECKING: | ||
| from typing import Optional, Callable, Any | ||
|
|
||
| T = TypeVar("T") | ||
|
|
||
|
|
||
| class Batcher(Generic[T]): | ||
|
Comment on lines
7
to
8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The Suggested FixRestore the deleted import statements for Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
| MAX_BEFORE_FLUSH = 100 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed TypeVar breaks class definition at import time
High Severity
The
T = TypeVar("T")definition was removed butGeneric[T]is still used in the class declaration. This causes aNameErrorat import time, making the entire_batchermodule un-importable. SinceBatcheris imported by_log_batcher.py,_metrics_batcher.py, and_span_batcher.py, this cascades and breaks log, metrics, and span batching functionality. The PR title indicates this is a CI workflow test — these destructive changes appear unintentional for merge.