Skip to content

Commit

Permalink
fix(registry): support List[str] and List[int] values
Browse files Browse the repository at this point in the history
resolves:

    error: Incompatible types (expression has type "list[str]", TypedDict
    item "values" has type "list[str | int]")  [typeddict-item]

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
  • Loading branch information
alonbl committed Oct 1, 2023
1 parent ef7e835 commit e4b6040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joserfc/rfc7519/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class ClaimsOption(TypedDict, total=False):
essential: bool
value: Union[str, int]
values: List[Union[str, int]]
values: Union[List[Union[str, int]], List[str], List[int]]


class ClaimsRegistry:
Expand Down

0 comments on commit e4b6040

Please sign in to comment.