-
Notifications
You must be signed in to change notification settings - Fork 11
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
feat: Support transient identities and traits #93
Conversation
- Support transient identities and traits - Bump requests - Bump mypy
10e330b
to
f38df63
Compare
f3e3433
to
a8126ac
Compare
body: typing.Optional[JsonType] = None, | ||
) -> typing.Any: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the return type be JsonType
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The return type here corresponds to response.json()
type, which is typing.Any
.
Casting to a specific type is responsibility of the caller, see e.g.
flagsmith-python-client/flagsmith/flagsmith.py
Lines 358 to 359 in b0e85d8
json_response: typing.Dict[str, typing.List[typing.Dict[str, JsonType]]] = ( | |
self._get_json_response( |
Closes #88.
requests
mypy