Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Graeme22 committed Feb 29, 2024
1 parent 8fbe3ef commit 65853d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ mypy==1.4.1
flake8==5.0.4
isort==5.11.5
types-requests==2.31.0.1
types-pytz==2024.1.0.20240203
websockets==11.0.3
pandas_market_calendars==4.3.3
pydantic==2.6.3
Expand Down
2 changes: 1 addition & 1 deletion tastytrade/dxfeed/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def from_stream(cls, data: list) -> List['Event']: # pragma: no cover
:return: list of event objects from data
"""
objs = []
size = len(cls.__fields__)
size = len(cls.model_fields)
multiples = len(data) / size
if not multiples.is_integer():
msg = 'Mapper data input values are not a multiple of the key size'
Expand Down
2 changes: 1 addition & 1 deletion tastytrade/utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from datetime import date, datetime, timedelta

import pandas_market_calendars as mcal # type: ignore
from pydantic import BaseModel
import pytz
from pydantic import BaseModel
from requests import Response

NYSE = mcal.get_calendar('NYSE')
Expand Down

0 comments on commit 65853d8

Please sign in to comment.