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

feat: Support transient identities and traits #93

Merged
merged 14 commits into from
Jul 19, 2024

Conversation

khvn26
Copy link
Member

@khvn26 khvn26 commented Jul 18, 2024

Closes #88.

  • Support transient identities and traits
  • Fix/improve typing
  • Bump requests
  • Bump mypy
  • Remove linting from CI in favour of pre-commit.ci

- Support transient identities and traits
- Bump requests
- Bump mypy
@khvn26 khvn26 requested review from a team and zachaysan and removed request for a team July 18, 2024 17:41
@khvn26 khvn26 force-pushed the feat/transient-identities-and-traits branch from 10e330b to f38df63 Compare July 18, 2024 18:10
@khvn26 khvn26 force-pushed the feat/transient-identities-and-traits branch from f3e3433 to a8126ac Compare July 18, 2024 18:13
flagsmith/flagsmith.py Outdated Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
tests/test_flagsmith.py Outdated Show resolved Hide resolved
tests/test_flagsmith.py Outdated Show resolved Hide resolved
Comment on lines +375 to 376
body: typing.Optional[JsonType] = None,
) -> typing.Any:
Copy link
Contributor

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?

Copy link
Member Author

@khvn26 khvn26 Jul 18, 2024

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.

json_response: typing.Dict[str, typing.List[typing.Dict[str, JsonType]]] = (
self._get_json_response(

@khvn26 khvn26 requested a review from matthewelwell July 18, 2024 19:38
@khvn26 khvn26 requested a review from matthewelwell July 19, 2024 10:37
@khvn26 khvn26 merged commit 0a11db5 into main Jul 19, 2024
5 checks passed
@khvn26 khvn26 deleted the feat/transient-identities-and-traits branch July 19, 2024 10:55
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.

Support transient identities and traits
3 participants