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 generic typing for TestClient #1769

Closed

Conversation

singingwolfboy
Copy link
Contributor

This allows developers to provide more detailed typing information for their TestClient usage, which is helpful when trying to refer to the .app property on a TestClient.

@Kludex Kludex added hold Don't merge it testclient TestClient-related labels Jul 18, 2022
Copy link
Sponsor Member

@Kludex Kludex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To not let you fully down, I guess you can use either of the following suggestions:

  1. @adriangb 's suggestion: Generic typing for TestClient #1768 (comment). But I see your point...
  2. Inherit Starlette's TestClient, and perform the changes you made on this PR.

@singingwolfboy
Copy link
Contributor Author

Understandable. Thanks for letting me know!

@Kludex
Copy link
Sponsor Member

Kludex commented Aug 13, 2022

Let's first discuss this on the discussion. 🙏

@Kludex Kludex closed this Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hold Don't merge it testclient TestClient-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants