Skip to content

Commit 9f7f66a

Browse files
TexasCodingclaude
andcommitted
fix(examples): use string type annotation for TYPE_CHECKING import
- Fix NameError in 04_realtime_data.py by quoting RealtimeDataManager type - Type is imported only for type checking, requires string annotation at runtime 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 4deea19 commit 9f7f66a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/04_realtime_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
from project_x_py.realtime_data_manager import RealtimeDataManager
3939

4040

41-
async def display_current_prices(data_manager: RealtimeDataManager):
41+
async def display_current_prices(data_manager: "RealtimeDataManager"):
4242
"""Display current prices across all timeframes asynchronously."""
4343
print("\n📊 Current Prices:")
4444

0 commit comments

Comments
 (0)