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

Update mypy to check entire package and fix fga module #329

Closed
wants to merge 2 commits into from

Conversation

tribble
Copy link

@tribble tribble commented Aug 12, 2024

Description

mypy wasn't configured to check the entire module. I've updated it to check the entire module, and I fixed the ensuing errros.

Documentation

Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.

[ ] Yes

If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.

@tribble tribble requested a review from mattgd August 12, 2024 18:33
@tribble tribble requested a review from a team as a code owner August 12, 2024 18:33
@atainter
Copy link
Contributor

Hey @tribble I just merged my PR with a fix to the FGA files

@atainter
Copy link
Contributor

#328

response = self._http_client.request(
PROFILE_PATH, method=REQUEST_METHOD_GET, token=access_token
)
response = self._http_client.request(PROFILE_PATH, method=REQUEST_METHOD_GET)
Copy link
Contributor

Choose a reason for hiding this comment

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

Realized this should actually be the following:

response = self._http_client.request(
    PROFILE_PATH,
    method=RequestMethod.GET,
    headers={**self._http_client.auth_header_from_token(access_token)},
)

@tribble
Copy link
Author

tribble commented Aug 12, 2024

Since @atainter has as fix ready, I'm closing this PR.

@tribble tribble closed this Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants