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

Add typings for Session #196

Merged
merged 6 commits into from
Nov 27, 2023
Merged

Conversation

arusahni
Copy link
Contributor

This depends on #191. Commits should be reviewed independently as this diff includes changes from that PR, too.

This brings the Session module in line with typings, and cleans up some now-redundant casts. Because mypy is no longer choking on the Session, some issues with existing annotations elsewhere in the project were revealed. This cleans them up, too.

$ poetry run mypy --strict tidalapi/
Success: no issues found in 12 source files

Fixes #137

@tehkillerbee
Copy link
Collaborator

tehkillerbee commented Sep 27, 2023

@2e0byo I've just put you as a reviewer on this PR. Feel free to put me as a reviewer, if you are busy rn.

@2e0byo
Copy link
Collaborator

2e0byo commented Sep 27, 2023

I'll try to go through this weekend. @arusahni as always thanks for the hard work

@arusahni
Copy link
Contributor Author

Howdy - I wanted to bump this in case it fell between the cracks.

@tehkillerbee
Copy link
Collaborator

@arusahni Sorry, I will take a look asap.

@tehkillerbee tehkillerbee self-assigned this Oct 23, 2023
@tehkillerbee tehkillerbee requested review from tehkillerbee and removed request for 2e0byo October 23, 2023 15:35
tidalapi/artist.py Outdated Show resolved Hide resolved
tidalapi/request.py Outdated Show resolved Hide resolved
@arusahni arusahni force-pushed the feat/session-typing branch from 7139072 to 95aeb99 Compare November 2, 2023 23:40
@tehkillerbee
Copy link
Collaborator

@arusahni Sorry for the lack of activity on this PR. I will do some tests on this and get it merged in one of the next few days.

@tehkillerbee
Copy link
Collaborator

Works with the latest changes. Some fixes are needed to the tests, but probably unrelated to this PR, as the tests have been broken for some time. I will also update the pyproject.toml since we have a couple of new dependencies added but I will do this in a separate PR.

@tehkillerbee tehkillerbee merged commit cbe8653 into tamland:master Nov 27, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Type Hints
3 participants