Skip to content

Conversation

DanielHashmi
Copy link
Contributor

The Trace class was using @abc.abstractmethod decorators without inheriting
from abc.ABC, which meant the abstract methods weren't enforced.

This change makes the class properly abstract while maintaining all existing functionality
since no code directly instantiates Trace() - all usage goes through the
concrete implementations NoOpTrace and TraceImpl.

@seratch seratch added enhancement New feature or request feature:tracing labels Jul 24, 2025
@seratch seratch requested a review from rm-openai July 24, 2025 11:29
@rm-openai rm-openai merged commit 64b4a5f into openai:main Jul 25, 2025
7 checks passed
@DanielHashmi DanielHashmi deleted the fix_trace_class_abc_inconsistency branch July 25, 2025 20:08
vcshih pushed a commit to veris-ai/openai-agents-python that referenced this pull request Aug 15, 2025
…behavior (openai#1233)

The Trace class was using @abc.abstractmethod decorators without
inheriting
from abc.ABC, which meant the abstract methods weren't enforced.

This change makes the class properly abstract while maintaining all
existing functionality
since no code directly instantiates Trace() - all usage goes through the
concrete implementations NoOpTrace and TraceImpl.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature:tracing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants