Skip to content

Commit a61ae8b

Browse files
committed
| syntax changed to Union for older python versions
1 parent ac22f25 commit a61ae8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nats/contrib/claims/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Claims(FlatteningModel):
1919

2020
# Nats Data
2121
nats: Optional[Union[User, Account, Operator]]
22-
issuer_account: Optional[str | bytes]
22+
issuer_account: Optional[Union[str, bytes]]
2323

2424
def __init__(
2525
self,
@@ -31,7 +31,7 @@ def __init__(
3131
nbf: Optional[int] = None,
3232
sub: Optional[str] = None,
3333
nats: Optional[Union[User, Account, Operator]] = None,
34-
issuer_account: Optional[str | bytes] = None,
34+
issuer_account: Optional[Union[str, bytes]] = None,
3535
):
3636
self.exp: Optional[int] = exp
3737
self.jti: Optional[str] = jti

0 commit comments

Comments
 (0)