betcode-org / betconnect

betconnect - API client
MIT License
7 stars 6 forks source link

user preferences admin_area field can be null #15

Closed petercoles closed 2 years ago

petercoles commented 2 years ago

BetConnect have confirmed that this field is nullable, so this commit avoids the type hinting throwing an exception when it encounters a null value.

varneyo commented 2 years ago

Cheers peter. I havent had a chance to look to much into the client in the last few weeks, but its very much in a prototype stage so if you spot things shoot across.

varneyo commented 2 years ago

actually just spotted should of rerun the test but syntax requires admin_area: Optional[str] = None the default value also. Ive just corrected that in the latest commit.