File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -767,7 +767,7 @@ class TokenStatus(str, Enum):
767767 REVOKED = "revoked"
768768
769769
770- class TokenScopes (str , Enum ):
770+ class TokenScope (str , Enum ):
771771 SCAN = "scan"
772772 INCIDENTS_READ = "incidents:read"
773773 INCIDENTS_WRITE = "incidents:write"
@@ -800,7 +800,7 @@ class ApiTokensResponseSchema(BaseSchema):
800800 revoked_at = fields .AwareDateTime (allow_none = True )
801801 member_id = fields .Int (allow_none = True )
802802 creator_id = fields .Int (allow_none = True )
803- scopes = fields .List (fields .Enum (TokenScopes , by_value = True ), required = False )
803+ scopes = fields .List (fields .Enum (TokenScope , by_value = True ), required = False )
804804
805805 @post_load
806806 def make_api_tokens_response (
@@ -825,7 +825,7 @@ def __init__(
825825 revoked_at : Optional [datetime ] = None ,
826826 member_id : Optional [int ] = None ,
827827 creator_id : Optional [int ] = None ,
828- scopes : Optional [List [TokenScopes ]] = None ,
828+ scopes : Optional [List [TokenScope ]] = None ,
829829 ):
830830 self .id = id
831831 self .name = name
You can’t perform that action at this time.
0 commit comments