Skip to content

Commit

Permalink
Remove more_itertools dependency, as it wasn't used.
Browse files Browse the repository at this point in the history
  • Loading branch information
EarningsCall committed May 27, 2024
1 parent 10b8ae8 commit 1225d89
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ for company in get_all_companies():

By default, this library grants you access to only two companies, Apple Inc. and Microsoft, Inc.

To gain access 5,000+ companies please [signup here](https://earningscall.biz/api-pricing) to get your API key.
To gain access to 5,000+ companies please [signup here](https://earningscall.biz/api-pricing) to get your API key.

Once you have access to your API key, you can set the API Key like this:

Expand Down
2 changes: 2 additions & 0 deletions earningscall/company.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def name(self) -> str:

def _get_events(self):
raw_response = api.get_events(self.company_info.exchange, self.company_info.symbol)
if not raw_response:
return []
return [EarningsEvent.from_dict(event) for event in raw_response["events"]]

def events(self) -> [EarningsEvent]:
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "earningscall"
version = "0.0.5"
version = "0.0.6"
description = "The EarningsCall Python library."
readme = "README.md"
authors = [
Expand All @@ -10,7 +10,6 @@ requires-python = ">= 3.8"
dependencies = [
"dataclasses>=0.6",
"dataclasses-json>=0.6.4",
"more_itertools>=10.0.0",
"requests>=2.30.0",
]

Expand Down
2 changes: 0 additions & 2 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ iniconfig==2.0.0
# via pytest
marshmallow==3.21.2
# via dataclasses-json
more-itertools==10.2.0
# via earningscall
mypy-extensions==1.0.0
# via typing-inspect
packaging==24.0
Expand Down
2 changes: 0 additions & 2 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ idna==3.7
# via requests
marshmallow==3.21.2
# via dataclasses-json
more-itertools==10.2.0
# via earningscall
mypy-extensions==1.0.0
# via typing-inspect
packaging==24.0
Expand Down

0 comments on commit 1225d89

Please sign in to comment.