Skip to content

Commit

Permalink
Bump mypy from 1.11.2 to 1.13.0 in /spiffworkflow-backend (#2144)
Browse files Browse the repository at this point in the history
* Bump mypy from 1.11.2 to 1.13.0 in /spiffworkflow-backend

Bumps [mypy](https://github.com/python/mypy) from 1.11.2 to 1.13.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](python/mypy@v1.11.2...v1.13.0)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* mypy updates

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: jasquat <[email protected]>
  • Loading branch information
dependabot[bot] and jasquat authored Nov 21, 2024
1 parent ac0d343 commit f4ca7a1
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 33 deletions.
62 changes: 34 additions & 28 deletions spiffworkflow-backend/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def most_recent_feature_flags(cls) -> dict[str, Any]:
return {}

result = cls.query.filter_by(generation_id=cache_generation.id).first()
return {} if result is None else result.value # type: ignore
return {} if result is None else result.value

@classmethod
def set_most_recent_feature_flags(cls, value: dict[str, Any]) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,12 @@ def validate_decoded_token(cls, decoded_token: dict, authentication_identifier:
iat = decoded_token["iat"]

valid_audience_values = cls.valid_audiences(authentication_identifier)
audience_array_in_token = aud
if isinstance(aud, str):
audience_array_in_token = [aud]
overlapping_aud_values = [x for x in audience_array_in_token if x in valid_audience_values]
overlapping_aud_values = []
if aud is not None:
audience_array_in_token = aud
if isinstance(aud, str):
audience_array_in_token = [aud]
overlapping_aud_values = [x for x in audience_array_in_token if x in valid_audience_values]

internal_server_url = cls.server_url(authentication_identifier, internal=True)

Expand Down

0 comments on commit f4ca7a1

Please sign in to comment.