Skip to content
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

TypeError: unsupported operand type(s) for |: 'types.GenericAlias' and 'NoneType' #176

Open
bz-e opened this issue Mar 16, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@bz-e
Copy link

bz-e commented Mar 16, 2025

Describe the bug
A clear and concise description of what the bug is.
when I running "poetry run python src/main.py --ticker AAPL,MSFT,NVDA"
there is a bug: ai-hedge-fund\src\data\cache.py", line 11, in Cache
def _merge_data(self, existing: list[dict] | None, new_data: list[dict], key_field: str) -> list[dict]:
TypeError: unsupported operand type(s) for |: 'types.GenericAlias' and 'NoneType'ai-hedge-fund\src\data\cache.py", line 11, in Cache
def _merge_data(self, existing: list[dict] | None, new_data: list[dict], key_field: str) -> list[dict]:
TypeError: unsupported operand type(s) for |: 'types.GenericAlias' and 'NoneType'
Screenshot
Add a screenshot of the bug to help explain your problem.

Additional context
Add any other context about the problem here.

@bz-e bz-e added the bug Something isn't working label Mar 16, 2025
@bz-e
Copy link
Author

bz-e commented Mar 16, 2025

fix: issue #176 Update python version to 3.10 #177

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant