Skip to content

Commit

Permalink
dependabot/pip/black 24.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dabeeeenster committed Mar 26, 2024
1 parent 6719baf commit e4d79e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.7.0
rev: 24.3.0
hooks:
- id: black
language_version: python3
Expand Down
14 changes: 7 additions & 7 deletions flagsmith/flagsmith.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,9 @@ def _get_identity_flags_from_document(

def _get_environment_flags_from_api(self) -> Flags:
try:
json_response: typing.List[
typing.Mapping[str, JsonType]
] = self._get_json_response(url=self.environment_flags_url, method="GET")
json_response: typing.List[typing.Mapping[str, JsonType]] = (
self._get_json_response(url=self.environment_flags_url, method="GET")
)
return Flags.from_api_flags(
api_flags=json_response,
analytics_processor=self._analytics_processor,
Expand All @@ -344,10 +344,10 @@ def _get_identity_flags_from_api(
) -> Flags:
try:
data = generate_identities_data(identifier, traits)
json_response: typing.Dict[
str, typing.List[typing.Dict[str, JsonType]]
] = self._get_json_response(
url=self.identities_url, method="POST", body=data
json_response: typing.Dict[str, typing.List[typing.Dict[str, JsonType]]] = (
self._get_json_response(
url=self.identities_url, method="POST", body=data
)
)
return Flags.from_api_flags(
api_flags=json_response["flags"],
Expand Down

0 comments on commit e4d79e0

Please sign in to comment.