uberfastman / yfpy

Python API wrapper for the Yahoo Fantasy Sports public API (supports NFL, NHL, MLB, and NBA).
https://pypi.org/project/yfpy/
GNU General Public License v3.0
163 stars 44 forks source link

Unexpected TypeError #31

Closed connormcole closed 1 year ago

connormcole commented 1 year ago

Hi,

I'm getting an unexpected TypeError when I try to run import YahooFantasySportsQuery, please see below screenshot. I was able to successfully setup my oauth file and connect to my yahoo account but am unable to run queries due to this error.

type_error

Please let me know if any further info is needed to assist.

Thanks

personjc commented 1 year ago

Looks like this is caused by using python version below 3.9: https://github.com/uberfastman/yfpy/issues/29

uberfastman commented 1 year ago

@connormcole @personjc I've updated YFPY to v8.0.8 to fix the type hints backwards compatibility with Python versions 3.7 and 3.8.